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

# numberOfLayers

## Declaration

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

## See Also

### Instance Properties

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