---
title: layerCount
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/layercount
---

# layerCount

The number of recurrent layers.

## Declaration

```swift
var layerCount: Int { 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)
- [resultMode](mlcompute/mlclstmdescriptor/resultmode.md)
- [returnsSequences](mlcompute/mlclstmdescriptor/returnssequences.md)
- [usesBiases](mlcompute/mlclstmdescriptor/usesbiases.md)
