Estado

public struct State : Equatable, Differentiable, VectorProtocol, KeyPathIterable, Mergeable
  • Declaração

    public var cell: Tensor<Scalar>
  • Declaração

    public var hidden: Tensor<Scalar>
  • Declaração

    @differentiable
    public init(cell: Tensor<Scalar>, hidden: Tensor<Scalar>)
  • Concatena dois valores.

    Declaração

    @differentiable
    public static func concatenate(_ lhs: `Self`, _ rhs: `Self`) -> LSTMCell<Scalar>.State
  • Adiciona dois valores e produz sua soma.

    Declaração

    @differentiable
    public static func sum(_ lhs: `Self`, _ rhs: `Self`) -> LSTMCell<Scalar>.State
  • Faz a média de dois valores.

    Declaração

    @differentiable
    public static func average(_ lhs: `Self`, _ rhs: `Self`) -> LSTMCell<Scalar>.State
  • Multiplica dois valores.

    Declaração

    @differentiable
    public static func multiply(_ lhs: `Self`, _ rhs: `Self`) -> LSTMCell<Scalar>.State
  • Empilhe dois valores.

    Declaração

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