Save the date! Google I/O returns May 18-20 Register now

State

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

    public var cell: Tensor<Scalar>
  • Declaration

    public var hidden: Tensor<Scalar>
  • Declaration

    @differentiable
    public init(cell: Tensor<Scalar>, hidden: Tensor<Scalar>)
  • Concatenates two values.

    Declaration

    @differentiable
    public static func concatenate(_ lhs: `Self`, _ rhs: `Self`) -> LSTMCell<Scalar>.State
  • Adds two values and produces their sum.

    Declaration

    @differentiable
    public static func sum(_ lhs: `Self`, _ rhs: `Self`) -> LSTMCell<Scalar>.State
  • Averages two values.

    Declaration

    @differentiable
    public static func average(_ lhs: `Self`, _ rhs: `Self`) -> LSTMCell<Scalar>.State
  • Multiplies two values.

    Declaration

    @differentiable
    public static func multiply(_ lhs: `Self`, _ rhs: `Self`) -> LSTMCell<Scalar>.State
  • Stack two values.

    Declaration

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