---
title: resultMode
framework: ML Compute
role: symbol
role_heading: Instance Property
platforms: [iOS 14.0+, iPadOS 14.0+, Mac Catalyst 14.0+, macOS 11.0+, tvOS 14.0+]
path: mlcompute/mlclstmdescriptor/resultmode
---

# resultMode

The mode that indicates whether the layer produces a single result tensor or three result tensors — final output, last hidden state, and the cell state.

## Declaration

```swift
var resultMode: MLCLSTMResultMode { get }
```

## See Also

### Inspecting LSTM Descriptors

- [batchFirst](mlcompute/mlclstmdescriptor/batchfirst.md)
- [dropout](mlcompute/mlclstmdescriptor/dropout.md)
- [hiddenSize](mlcompute/mlclstmdescriptor/hiddensize.md)
- [inputSize](mlcompute/mlclstmdescriptor/inputsize.md)
- [isBidirectional](mlcompute/mlclstmdescriptor/isbidirectional.md)
- [layerCount](mlcompute/mlclstmdescriptor/layercount.md)
- [returnsSequences](mlcompute/mlclstmdescriptor/returnssequences.md)
- [usesBiases](mlcompute/mlclstmdescriptor/usesbiases.md)
