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

# MPSGraphPooling4DOpDescriptor

The class that defines the parameters for a 4D pooling operation.

```
class MPSGraphPooling4DOpDescriptor
```

## Overview

Use this descriptor with the following methods:

- [`maxPooling4D(_:descriptor:name:)`](/documentation/MetalPerformanceShadersGraph/MPSGraph/maxPooling4D(_:descriptor:name:))
- [`maxPooling4DReturnIndices(_:descriptor:name:)`](/documentation/MetalPerformanceShadersGraph/MPSGraph/maxPooling4DReturnIndices(_:descriptor:name:))
- [`maxPooling4DGradient(_:source:descriptor:name:)`](/documentation/MetalPerformanceShadersGraph/MPSGraph/maxPooling4DGradient(_:source:descriptor:name:))
- [`maxPooling4DGradient(withGradientTensor:indicesTensor:outputShape:descriptor:name:)`](/documentation/MetalPerformanceShadersGraph/MPSGraph/maxPooling4DGradient(withGradientTensor:indicesTensor:outputShape:descriptor:name:))
- [`maxPooling4DGradient(withGradientTensor:indicesTensor:outputShapeTensor:descriptor:name:)`](/documentation/MetalPerformanceShadersGraph/MPSGraph/maxPooling4DGradient(withGradientTensor:indicesTensor:outputShapeTensor:descriptor:name:))
- [`avgPooling4D(_:descriptor:name:)`](/documentation/MetalPerformanceShadersGraph/MPSGraph/avgPooling4D(_:descriptor:name:))
- [`avgPooling4DGradient(_:source:descriptor:name:)`](/documentation/MetalPerformanceShadersGraph/MPSGraph/avgPooling4DGradient(_:source:descriptor:name:))
- [`L2NormPooling4D(_:descriptor:name:)`](/documentation/MetalPerformanceShadersGraph/MPSGraph/L2NormPooling4D(_:descriptor:name:))
- [`L2NormPooling4DGradient(_:source:descriptor:name:)`](/documentation/MetalPerformanceShadersGraph/MPSGraph/L2NormPooling4DGradient(_:source:descriptor:name:))

## Relationships

### Conforms To

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

[`NSCopying`](/documentation/Foundation/NSCopying)

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

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

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

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

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

### Inherits From

[`MPSGraphObject`](/documentation/MetalPerformanceShadersGraph/MPSGraphObject)

---

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)