---
title: numberOfLayers
framework: metalperformanceshaders
role: symbol
role_heading: Instance Property
path: metalperformanceshaders/mpsrnnmatrixinferencelayer/numberoflayers
---

# numberOfLayers

## Declaration

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

## See Also

### Instance Properties

- [bidirectionalCombineMode](metalperformanceshaders/mpsrnnmatrixinferencelayer/bidirectionalcombinemode.md)
- [MPSRNNBidirectionalCombineMode](metalperformanceshaders/mpsrnnbidirectionalcombinemode.md)
- [inputFeatureChannels](metalperformanceshaders/mpsrnnmatrixinferencelayer/inputfeaturechannels.md)
- [outputFeatureChannels](metalperformanceshaders/mpsrnnmatrixinferencelayer/outputfeaturechannels.md)
- [recurrentOutputIsTemporary](metalperformanceshaders/mpsrnnmatrixinferencelayer/recurrentoutputistemporary.md)
- [storeAllIntermediateStates](metalperformanceshaders/mpsrnnmatrixinferencelayer/storeallintermediatestates.md)
