State

public struct State : Equatable, Differentiable, VectorProtocol, KeyPathIterable, Mergeable
  • Déclaration

    public var cell: Tensor<Scalar>
  • Déclaration

    public var hidden: Tensor<Scalar>
  • Déclaration

    @differentiable
    public init(cell: Tensor<Scalar>, hidden: Tensor<Scalar>)
  • Concatène deux valeurs.

    Déclaration

    @differentiable
    public static func concatenate(_ lhs: `Self`, _ rhs: `Self`) -> LSTMCell<Scalar>.State
  • Ajoute deux valeurs et produit leur somme.

    Déclaration

    @differentiable
    public static func sum(_ lhs: `Self`, _ rhs: `Self`) -> LSTMCell<Scalar>.State
  • Fait la moyenne de deux valeurs.

    Déclaration

    @differentiable
    public static func average(_ lhs: `Self`, _ rhs: `Self`) -> LSTMCell<Scalar>.State
  • Multiplie deux valeurs.

    Déclaration

    @differentiable
    public static func multiply(_ lhs: `Self`, _ rhs: `Self`) -> LSTMCell<Scalar>.State
  • Empilez deux valeurs.

    Déclaration

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