---
title: MPSGraphPooling4DOpDescriptor
framework: metalperformanceshadersgraph
role: symbol
role_heading: Class
path: metalperformanceshadersgraph/mpsgraphpooling4dopdescriptor
---

# MPSGraphPooling4DOpDescriptor

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

## Declaration

```swift
class MPSGraphPooling4DOpDescriptor
```

## Overview

Overview Use this descriptor with the following methods: maxPooling4D(_:descriptor:name:) maxPooling4DReturnIndices(_:descriptor:name:) maxPooling4DGradient(_:source:descriptor:name:) maxPooling4DGradient(withGradientTensor:indicesTensor:outputShape:descriptor:name:) maxPooling4DGradient(withGradientTensor:indicesTensor:outputShapeTensor:descriptor:name:) avgPooling4D(_:descriptor:name:) avgPooling4DGradient(_:source:descriptor:name:) L2NormPooling4D(_:descriptor:name:) L2NormPooling4DGradient(_:source:descriptor:name:)

## Topics

### Initializers

- [init(kernelSizes:paddingStyle:)](metalperformanceshadersgraph/mpsgraphpooling4dopdescriptor/init(kernelsizes:paddingstyle:).md)
- [init(kernelSizes:strides:dilationRates:paddingValues:paddingStyle:)](metalperformanceshadersgraph/mpsgraphpooling4dopdescriptor/init(kernelsizes:strides:dilationrates:paddingvalues:paddingstyle:).md)

### Instance Properties

- [ceilMode](metalperformanceshadersgraph/mpsgraphpooling4dopdescriptor/ceilmode.md)
- [dilationRates](metalperformanceshadersgraph/mpsgraphpooling4dopdescriptor/dilationrates.md)
- [includeZeroPadToAverage](metalperformanceshadersgraph/mpsgraphpooling4dopdescriptor/includezeropadtoaverage.md)
- [kernelSizes](metalperformanceshadersgraph/mpsgraphpooling4dopdescriptor/kernelsizes.md)
- [paddingStyle](metalperformanceshadersgraph/mpsgraphpooling4dopdescriptor/paddingstyle.md)
- [paddingValues](metalperformanceshadersgraph/mpsgraphpooling4dopdescriptor/paddingvalues.md)
- [returnIndicesDataType](metalperformanceshadersgraph/mpsgraphpooling4dopdescriptor/returnindicesdatatype.md)
- [returnIndicesMode](metalperformanceshadersgraph/mpsgraphpooling4dopdescriptor/returnindicesmode.md)
- [strides](metalperformanceshadersgraph/mpsgraphpooling4dopdescriptor/strides.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)
