# State

``public struct State : Equatable, Differentiable, VectorProtocol, KeyPathIterable, Mergeable``
• ``` cell ```

#### Declaration

``public var cell: Tensor<Scalar>``
• ``` hidden ```

#### Declaration

``public var hidden: Tensor<Scalar>``
• ``` init(cell:hidden:) ```

#### Declaration

``````@differentiable
public init(cell: Tensor<Scalar>, hidden: Tensor<Scalar>)``````
• ``` concatenate(_:_:) ```

Concatenates two values.

#### Declaration

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

Adds two values and produces their sum.

#### Declaration

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

Averages two values.

#### Declaration

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

Multiplies two values.

#### Declaration

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

Stack two values.

#### Declaration

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