---
title: MPSRNNRecurrentImageState
framework: metalperformanceshaders
role: symbol
role_heading: Class
path: metalperformanceshaders/mpsrnnrecurrentimagestate
---

# MPSRNNRecurrentImageState

A class that holds all the data that’s passed from one sequence iteration of the image-based recurrent neural network layer (stack) to the next.

## Declaration

```swift
class MPSRNNRecurrentImageState
```

## Topics

### Instance Methods

- [getMemoryCellImage(forLayerIndex:)](metalperformanceshaders/mpsrnnrecurrentimagestate/getmemorycellimage(forlayerindex:).md)
- [getRecurrentOutputImage(forLayerIndex:)](metalperformanceshaders/mpsrnnrecurrentimagestate/getrecurrentoutputimage(forlayerindex:).md)

## Relationships

### Inherits From

- [MPSState](metalperformanceshaders/mpsstate.md)

### Conforms To

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

## See Also

### Instance Methods

- [copy(with:device:)](metalperformanceshaders/mpsrnnimageinferencelayer/copy(with:device:).md)
- [encodeBidirectionalSequence(commandBuffer:sourceSequence:destinationForwardImages:destinationBackwardImages:)](metalperformanceshaders/mpsrnnimageinferencelayer/encodebidirectionalsequence(commandbuffer:sourcesequence:destinationforwardimages:destinationbackwardimages:).md)
- [encodeSequence(commandBuffer:sourceImages:destinationImages:recurrentInputState:recurrentOutputStates:)](metalperformanceshaders/mpsrnnimageinferencelayer/encodesequence(commandbuffer:sourceimages:destinationimages:recurrentinputstate:recurrentoutputstates:).md)
