상태

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>)
  • 두 값을 연결합니다.

    선언

    @differentiable
    public static func concatenate(_ lhs: `Self`, _ rhs: `Self`) -> LSTMCell<Scalar>.State
  • 두 값을 더하고 그 합계를 계산합니다.

    선언

    @differentiable
    public static func sum(_ lhs: `Self`, _ rhs: `Self`) -> LSTMCell<Scalar>.State
  • 두 값의 평균을 구합니다.

    선언

    @differentiable
    public static func average(_ lhs: `Self`, _ rhs: `Self`) -> LSTMCell<Scalar>.State
  • 두 값을 곱합니다.

    선언

    @differentiable
    public static func multiply(_ lhs: `Self`, _ rhs: `Self`) -> LSTMCell<Scalar>.State
  • 두 개의 값을 쌓습니다.

    선언

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