Stan

public struct State : Equatable, Differentiable, VectorProtocol, KeyPathIterable, Mergeable
  • Deklaracja

    public var cell: Tensor<Scalar>
  • Deklaracja

    public var hidden: Tensor<Scalar>
  • Deklaracja

    @differentiable
    public init(cell: Tensor<Scalar>, hidden: Tensor<Scalar>)
  • Łączy dwie wartości.

    Deklaracja

    @differentiable
    public static func concatenate(_ lhs: `Self`, _ rhs: `Self`) -> LSTMCell<Scalar>.State
  • Dodaje dwie wartości i generuje ich sumę.

    Deklaracja

    @differentiable
    public static func sum(_ lhs: `Self`, _ rhs: `Self`) -> LSTMCell<Scalar>.State
  • Uśrednia dwie wartości.

    Deklaracja

    @differentiable
    public static func average(_ lhs: `Self`, _ rhs: `Self`) -> LSTMCell<Scalar>.State
  • Mnoży dwie wartości.

    Deklaracja

    @differentiable
    public static func multiply(_ lhs: `Self`, _ rhs: `Self`) -> LSTMCell<Scalar>.State
  • Połącz dwie wartości.

    Deklaracja

    @differentiable
    public static func stack(_ lhs: `Self`, _ rhs: `Self`) -> LSTMCell<Scalar>.State