---
title: MPSCNNDropoutGradientState
framework: metalperformanceshaders
role: symbol
role_heading: Class
path: metalperformanceshaders/mpscnndropoutgradientstate
---

# MPSCNNDropoutGradientState

A class that stores the mask used by dropout and gradient dropout filters.

## Declaration

```swift
class MPSCNNDropoutGradientState
```

## Topics

### Instance Methods

- [maskData()](metalperformanceshaders/mpscnndropoutgradientstate/maskdata().md)

## Relationships

### Inherits From

- [MPSNNGradientState](metalperformanceshaders/mpsnngradientstate.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

### Dropout Layers

- [MPSCNNDropout](metalperformanceshaders/mpscnndropout.md)
- [MPSCNNDropoutGradient](metalperformanceshaders/mpscnndropoutgradient.md)
