<!--
{
  "availability" : [
    "iOS: 14.0.0 - 18.0.0",
    "iPadOS: 14.0.0 - 18.0.0",
    "macCatalyst: 14.0.0 - 18.0.0",
    "macOS: 11.0.0 - 15.0.0",
    "tvOS: 14.0.0 - 18.0.0",
    "visionOS: 1.0.0 - 2.0.0",
    "watchOS: 7.0.0 - 11.0.0"
  ],
  "documentType" : "symbol",
  "framework" : "Accelerate",
  "identifier" : "/documentation/Accelerate/BNNSLSTMGateDescriptor",
  "metadataVersion" : "0.1.0",
  "role" : "Structure",
  "symbol" : {
    "kind" : "Structure",
    "modules" : [
      "Accelerate"
    ],
    "preciseIdentifier" : "c:@SA@BNNSLSTMGateDescriptor"
  },
  "title" : "BNNSLSTMGateDescriptor"
}
-->

# BNNSLSTMGateDescriptor

A structure that describes a long short-term memory (LSTM) gate layer.

```
struct BNNSLSTMGateDescriptor
```

## Topics

### Initializers

[`init(iw_desc:hw_desc:cw_desc:b_desc:activation:)`](/documentation/Accelerate/BNNSLSTMGateDescriptor/init(iw_desc:hw_desc:cw_desc:b_desc:activation:))

Returns a new long short-term memory (LSTM) gate descriptor structure from the specified parameters.

[`init()`](/documentation/Accelerate/BNNSLSTMGateDescriptor/init())

Returns a new long short-term memory (LSTM) gate descriptor structure.

### Instance Properties

[`iw_desc`](/documentation/Accelerate/BNNSLSTMGateDescriptor/iw_desc)

The descriptor of the input weights.

[`hw_desc`](/documentation/Accelerate/BNNSLSTMGateDescriptor/hw_desc)

The descriptor of the hidden weights.

[`cw_desc`](/documentation/Accelerate/BNNSLSTMGateDescriptor/cw_desc)

The descriptor of the cell weights.

[`b_desc`](/documentation/Accelerate/BNNSLSTMGateDescriptor/b_desc)

The descriptor of the bias.

[`activation`](/documentation/Accelerate/BNNSLSTMGateDescriptor/activation)

The activation function that the layer applies to the output.



---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)