<!--
{
  "availability" : [
    "iOS: 11.0.0 -",
    "iPadOS: 11.0.0 -",
    "macCatalyst: 13.0.0 -",
    "macOS: 10.13.0 -",
    "tvOS: 11.0.0 -",
    "visionOS: 1.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "MetalPerformanceShaders",
  "identifier" : "/documentation/MetalPerformanceShaders/MPSRNNDescriptor",
  "metadataVersion" : "0.1.0",
  "role" : "Class",
  "symbol" : {
    "kind" : "Class",
    "modules" : [
      "Metal Performance Shaders"
    ],
    "preciseIdentifier" : "c:objc(cs)MPSRNNDescriptor"
  },
  "title" : "MPSRNNDescriptor"
}
-->

# MPSRNNDescriptor

A description of a recursive neural network block or layer.

```
class MPSRNNDescriptor
```

## Topics

### Instance Properties

[`inputFeatureChannels`](/documentation/MetalPerformanceShaders/MPSRNNDescriptor/inputFeatureChannels)

[`layerSequenceDirection`](/documentation/MetalPerformanceShaders/MPSRNNDescriptor/layerSequenceDirection)

[`outputFeatureChannels`](/documentation/MetalPerformanceShaders/MPSRNNDescriptor/outputFeatureChannels)

[`useFloat32Weights`](/documentation/MetalPerformanceShaders/MPSRNNDescriptor/useFloat32Weights)

[`useLayerInputUnitTransformMode`](/documentation/MetalPerformanceShaders/MPSRNNDescriptor/useLayerInputUnitTransformMode)

## Relationships

### Conforms To

[`CustomStringConvertible`](/documentation/Swift/CustomStringConvertible)

[`CVarArg`](/documentation/Swift/CVarArg)

[`NSObjectProtocol`](/documentation/ObjectiveC/NSObjectProtocol)

[`Equatable`](/documentation/Swift/Equatable)

[`CustomDebugStringConvertible`](/documentation/Swift/CustomDebugStringConvertible)

[`Hashable`](/documentation/Swift/Hashable)

### Inherited By

[`MPSGRUDescriptor`](/documentation/MetalPerformanceShaders/MPSGRUDescriptor)

[`MPSRNNSingleGateDescriptor`](/documentation/MetalPerformanceShaders/MPSRNNSingleGateDescriptor)

[`MPSLSTMDescriptor`](/documentation/MetalPerformanceShaders/MPSLSTMDescriptor)

### Inherits From

[`NSObject-swift.class`](/documentation/ObjectiveC/NSObject-swift.class)

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)