---
title: MPSGraphLSTMDescriptor
framework: metalperformanceshadersgraph
role: symbol
role_heading: Class
path: metalperformanceshadersgraph/mpsgraphlstmdescriptor
---

# MPSGraphLSTMDescriptor

The class that defines the parameters for a long short-term memory (LSTM) operation.

## Declaration

```swift
class MPSGraphLSTMDescriptor
```

## Overview

Overview Use this descriptor with the following MPSGraph methods: LSTM(_:recurrentWeight:initState:initCell:descriptor:name:) LSTM(_:recurrentWeight:inputWeight:bias:initState:initCell:descriptor:name:) LSTM(_:recurrentWeight:inputWeight:bias:initState:initCell:mask:peephole:descriptor:name:) LSTMGradients(_:recurrentWeight:sourceGradient:zState:cellOutputFwd:descriptor:name:) LSTMGradients(_:recurrentWeight:sourceGradient:zState:cellOutputFwd:inputWeight:bias:initState:initCell:descriptor:name:) LSTMGradients(_:recurrentWeight:sourceGradient:zState:cellOutputFwd:inputWeight:bias:initState:initCell:mask:descriptor:name:) LSTMGradients(_:recurrentWeight:sourceGradient:zState:cellOutputFwd:stateGradient:cellGradient:inputWeight:bias:initState:initCell:mask:peephole:descriptor:name:)

## Topics

### Instance Properties

- [activation](metalperformanceshadersgraph/mpsgraphlstmdescriptor/activation.md)
- [bidirectional](metalperformanceshadersgraph/mpsgraphlstmdescriptor/bidirectional.md)
- [cellGateActivation](metalperformanceshadersgraph/mpsgraphlstmdescriptor/cellgateactivation.md)
- [forgetGateActivation](metalperformanceshadersgraph/mpsgraphlstmdescriptor/forgetgateactivation.md)
- [forgetGateLast](metalperformanceshadersgraph/mpsgraphlstmdescriptor/forgetgatelast.md)
- [inputGateActivation](metalperformanceshadersgraph/mpsgraphlstmdescriptor/inputgateactivation.md)
- [outputGateActivation](metalperformanceshadersgraph/mpsgraphlstmdescriptor/outputgateactivation.md)
- [produceCell](metalperformanceshadersgraph/mpsgraphlstmdescriptor/producecell.md)
- [reverse](metalperformanceshadersgraph/mpsgraphlstmdescriptor/reverse.md)
- [training](metalperformanceshadersgraph/mpsgraphlstmdescriptor/training.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)
- [MPSGraphGRUDescriptor](metalperformanceshadersgraph/mpsgraphgrudescriptor.md)
- [MPSGraphImToColOpDescriptor](metalperformanceshadersgraph/mpsgraphimtocolopdescriptor.md)
