---
title: inputSize
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/inputsize
---

# inputSize

The number of expected features in the input.

## Declaration

```swift
var inputSize: Int { get }
```

## See Also

### Inspecting LSTM Descriptors

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