Class

MPSCNNPoolingAverage

An average pooling filter.

Declaration

@interface MPSCNNPoolingAverage : MPSCNNPooling

Overview

For each pixel in an image, the filter returns the average value of the pixels in the filter region defined by kernelWidth x kernelHeight.

When the value of the edgeMode property is set to MPSImageEdgeModeClamp, the filtering window is shrunk to remain within the source image borders. For pixels close to the image borders, the filtering window will be smaller in order to fit inside the source image and less values will be used to compute the average value. In case the filtering window is entirely outside the source image border, the output value will be 0.

Topics

Initializers

- initWithCoder:device:

Initializes an average pooling filter.

Instance Properties

Relationships

Inherits From

See Also

Pooling Layers

MPSCNNPoolingAverageGradient

A gradient average pooling filter.

MPSCNNPoolingL2Norm

An L2-norm pooling filter.

MPSCNNPoolingMax

A max pooling filter.

MPSCNNDilatedPoolingMax

A dilated max pooling filter.

MPSCNNPooling

A pooling kernel.

MPSCNNPoolingGradient

A gradient pooling kernel.

MPSCNNDilatedPoolingMaxGradient

A gradient dilated max pooling filter.

MPSCNNPoolingL2NormGradient

A gradient L2-norm pooling filter.

MPSCNNPoolingMaxGradient

A gradient max pooling filter.