MPSNNReduceFeatureChannelsSum(3) MetalPerformanceShaders.framework MPSNNReduceFeatureChannelsSum(3)

MPSNNReduceFeatureChannelsSum

#import <MPSNNReduce.h>

Inherits MPSNNReduceUnary.


(nonnull instancetype) - initWithDevice:


float weight

The MPSNNReduceFeatureChannelsSum performs a reduction operation returning the sum for each column of an image

- (nonnull instancetype) initWithDevice: (nonnull id< MTLDevice >) device

Specifies information to apply the reduction operation on an image.

Parameters:

device The device the filter will run on

Returns:

A valid MPSNNReduceFeatureChannelsSum object or nil, if failure.

Reimplemented from MPSNNReduceUnary.

- weight [read], [write], [nonatomic], [assign]

The scale factor to apply to each feature channel value Each feature channel is multiplied by the weight value to compute a weighted sum or mean across feature channels The default value is 1.0.

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

Mon Jul 9 2018 Version MetalPerformanceShaders-119.3