---
title: MPSGraphGRUDescriptor
framework: metalperformanceshadersgraph
role: symbol
role_heading: Class
path: metalperformanceshadersgraph/mpsgraphgrudescriptor
---

# MPSGraphGRUDescriptor

The class that defines the parameters for a gated recurrent unit (GRU) operation.

## Declaration

```swift
class MPSGraphGRUDescriptor
```

## Overview

Overview Use this descriptor with the following MPSGraph methods: GRU(_:recurrentWeight:inputWeight:bias:descriptor:name:) GRU(_:recurrentWeight:inputWeight:bias:initState:descriptor:name:) GRU(_:recurrentWeight:inputWeight:bias:initState:mask:secondaryBias:descriptor:name:) GRUGradients(_:recurrentWeight:sourceGradient:zState:outputFwd:inputWeight:bias:descriptor:name:) GRUGradients(_:recurrentWeight:sourceGradient:zState:outputFwd:inputWeight:bias:initState:descriptor:name:) GRUGradients(_:recurrentWeight:sourceGradient:zState:outputFwd:stateGradient:inputWeight:bias:initState:mask:secondaryBias:descriptor:name:)

## Topics

### Instance Properties

- [bidirectional](metalperformanceshadersgraph/mpsgraphgrudescriptor/bidirectional.md)
- [flipZ](metalperformanceshadersgraph/mpsgraphgrudescriptor/flipz.md)
- [outputGateActivation](metalperformanceshadersgraph/mpsgraphgrudescriptor/outputgateactivation.md)
- [resetAfter](metalperformanceshadersgraph/mpsgraphgrudescriptor/resetafter.md)
- [resetGateActivation](metalperformanceshadersgraph/mpsgraphgrudescriptor/resetgateactivation.md)
- [resetGateFirst](metalperformanceshadersgraph/mpsgraphgrudescriptor/resetgatefirst.md)
- [reverse](metalperformanceshadersgraph/mpsgraphgrudescriptor/reverse.md)
- [training](metalperformanceshadersgraph/mpsgraphgrudescriptor/training.md)
- [updateGateActivation](metalperformanceshadersgraph/mpsgraphgrudescriptor/updategateactivation.md)

## Relationships

### Inherits From

- [MPSGraphObject](metalperformanceshadersgraph/mpsgraphobject.md)

### Conforms To

- [CVarArg](swift/cvararg.md)
- [CustomDebugStringConvertible](swift/customdebugstringconvertible.md)
- [CustomStringConvertible](swift/customstringconvertible.md)
- [Equatable](swift/equatable.md)
- [Hashable](swift/hashable.md)
- [NSCopying](foundation/nscopying.md)
- [NSObjectProtocol](objectivec/nsobjectprotocol.md)

## See Also

### Classes

- [MPSGraph](metalperformanceshadersgraph/mpsgraph.md)
- [MPSGraphCompilationDescriptor](metalperformanceshadersgraph/mpsgraphcompilationdescriptor.md)
- [MPSGraphConvolution2DOpDescriptor](metalperformanceshadersgraph/mpsgraphconvolution2dopdescriptor.md)
- [MPSGraphConvolution3DOpDescriptor](metalperformanceshadersgraph/mpsgraphconvolution3dopdescriptor.md)
- [MPSGraphCreateSparseOpDescriptor](metalperformanceshadersgraph/mpsgraphcreatesparseopdescriptor.md)
- [MPSGraphDepthwiseConvolution2DOpDescriptor](metalperformanceshadersgraph/mpsgraphdepthwiseconvolution2dopdescriptor.md)
- [MPSGraphDepthwiseConvolution3DOpDescriptor](metalperformanceshadersgraph/mpsgraphdepthwiseconvolution3dopdescriptor.md)
- [MPSGraphDevice](metalperformanceshadersgraph/mpsgraphdevice.md)
- [MPSGraphExecutable](metalperformanceshadersgraph/mpsgraphexecutable.md)
- [MPSGraphExecutableExecutionDescriptor](metalperformanceshadersgraph/mpsgraphexecutableexecutiondescriptor.md)
- [MPSGraphExecutableSerializationDescriptor](metalperformanceshadersgraph/mpsgraphexecutableserializationdescriptor.md)
- [MPSGraphExecutionDescriptor](metalperformanceshadersgraph/mpsgraphexecutiondescriptor.md)
- [MPSGraphFFTDescriptor](metalperformanceshadersgraph/mpsgraphfftdescriptor.md)
- [MPSGraphImToColOpDescriptor](metalperformanceshadersgraph/mpsgraphimtocolopdescriptor.md)
- [MPSGraphLSTMDescriptor](metalperformanceshadersgraph/mpsgraphlstmdescriptor.md)
