State

public struct State : Equatable, Differentiable, VectorProtocol, KeyPathIterable, Mergeable
  • 宣言

    public var cell: Tensor<Scalar>
  • 宣言

    public var hidden: Tensor<Scalar>
  • 宣言

    @differentiable
    public init(cell: Tensor<Scalar>, hidden: Tensor<Scalar>)
  • 2 つの値を連結します。

    宣言

    @differentiable
    public static func concatenate(_ lhs: `Self`, _ rhs: `Self`) -> LSTMCell<Scalar>.State
  • 2 つの値を加算し、その合計を計算します。

    宣言

    @differentiable
    public static func sum(_ lhs: `Self`, _ rhs: `Self`) -> LSTMCell<Scalar>.State
  • 2 つの値を平均します。

    宣言

    @differentiable
    public static func average(_ lhs: `Self`, _ rhs: `Self`) -> LSTMCell<Scalar>.State
  • 2 つの値を乗算します。

    宣言

    @differentiable
    public static func multiply(_ lhs: `Self`, _ rhs: `Self`) -> LSTMCell<Scalar>.State
  • 2 つの値をスタックします。

    宣言

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