# 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``````
[{ "type": "thumb-down", "id": "missingTheInformationINeed", "label":"Missing the information I need" },{ "type": "thumb-down", "id": "tooComplicatedTooManySteps", "label":"Too complicated / too many steps" },{ "type": "thumb-down", "id": "outOfDate", "label":"Out of date" },{ "type": "thumb-down", "id": "samplesCodeIssue", "label":"Samples / code issue" },{ "type": "thumb-down", "id": "otherDown", "label":"Other" }]
[{ "type": "thumb-up", "id": "easyToUnderstand", "label":"Easy to understand" },{ "type": "thumb-up", "id": "solvedMyProblem", "label":"Solved my problem" },{ "type": "thumb-up", "id": "otherUp", "label":"Other" }]
{"lastModified": "Last updated 2021-09-28 UTC."}