<!--
{
  "availability" : [
    "iOS: 14.0.0 - 17.4.0",
    "iPadOS: 14.0.0 - 17.4.0",
    "macCatalyst: 14.0.0 - 17.4.0",
    "macOS: 11.0.0 - 14.3.0",
    "tvOS: 14.0.0 - 17.4.0"
  ],
  "documentType" : "symbol",
  "framework" : "MLCompute",
  "identifier" : "/documentation/MLCompute/MLCLSTMResultMode",
  "metadataVersion" : "0.1.0",
  "role" : "Enumeration",
  "symbol" : {
    "kind" : "Enumeration",
    "modules" : [
      "ML Compute"
    ],
    "preciseIdentifier" : "c:@E@MLCLSTMResultMode"
  },
  "title" : "MLCLSTMResultMode"
}
-->

# MLCLSTMResultMode

Constants that describe the result of an LSTM layer.

```
enum MLCLSTMResultMode
```

## Topics

### Enumeration Cases

[`MLCLSTMResultMode.output`](/documentation/MLCompute/MLCLSTMResultMode/output)

A result mode that indicates the layer produces a single result tensor that represents the final output of the LSTM.

[`MLCLSTMResultMode.outputAndStates`](/documentation/MLCompute/MLCLSTMResultMode/outputAndStates)

A result mode that indicates the layer produces three result tensors that represent the final output of the LSTM, the last hidden state, and the cell state.

[`debugDescription`](/documentation/MLCompute/MLCLSTMResultMode/debugDescription)

A textual description of the LSTM result mode you use for debugging.



---

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)