MPSCNNPoolingL2Norm(3) MetalPerformanceShaders.framework MPSCNNPoolingL2Norm(3)

MPSCNNPoolingL2Norm

#import <MPSCNNPooling.h>

Inherits MPSCNNPooling.


(nonnull instancetype) - initWithDevice:kernelWidth:kernelHeight:strideInPixelsX:strideInPixelsY:
(nullable instancetype) - initWithCoder:device:

This depends on Metal.framework Specifies the L2-norm pooling filter. For each pixel, returns L2-Norm of pixels in the kernelWidth x kernelHeight filter region. out[c,x,y] = sqrt ( sum_{dx,dy} in[c,x+dx,y+dy] * in[c,x+dx,y+dy] ).

- (nullable instancetype) initWithCoder: (NSCoder *__nonnull) aDecoder(nonnull id< MTLDevice >) device

NSSecureCoding compatability See MPSKernel::initWithCoder.

Parameters:

aDecoder The NSCoder subclass with your serialized MPSCNNPooling
device The MTLDevice on which to make the MPSCNNPooling

Returns:

A new MPSCNNPooling object, or nil if failure.

Reimplemented from MPSCNNPooling.

- (nonnull instancetype) initWithDevice: (nonnull id< MTLDevice >) device(NSUInteger) kernelWidth(NSUInteger) kernelHeight(NSUInteger) strideInPixelsX(NSUInteger) strideInPixelsY

Initialize a MPSCNNPoolingL2Norm pooling filter

Parameters:

device The device the filter will run on
kernelWidth The width of the kernel. Can be an odd or even value.
kernelHeight The height of the kernel. Can be an odd or even value.
strideInPixelsX The output stride (downsampling factor) in the x dimension.
strideInPixelsY The output stride (downsampling factor) in the y dimension.

Returns:

A valid MPSCNNPooling object or nil, if failure.

Reimplemented from MPSCNNPooling.

Generated automatically by Doxygen for MetalPerformanceShaders.framework from the source code.

Mon Jul 9 2018 Version MetalPerformanceShaders-119.3