MPSNNReduceFeatureChannelsAndWeightsSum(3) MetalPerformanceShaders.framework MPSNNReduceFeatureChannelsAndWeightsSum(3)

MPSNNReduceFeatureChannelsAndWeightsSum

#import <MPSNNReduce.h>

Inherits MPSNNReduceBinary.


(nonnull instancetype) - initWithDevice:
(nonnull instancetype) - initWithDevice:doWeightedSumByNonZeroWeights:


bool doWeightedSumByNonZeroWeights

- (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 MPSNNReduceFeatureChannelsAndWeightsMean object or nil, if failure.

Reimplemented from MPSNNReduceBinary.

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

Specifies information to apply the reduction operation on an image.

Parameters:

device The device the filter will run on
doWeightedSumByNonZeroWeights A boolean to indicate whether to compute a weighted sum or weighted sum divided by the number of non-zero weights

Returns:

A valid MPSNNReduceFeatureChannelsAndWeightsSum object or nil, if failure.

- (bool) doWeightedSumByNonZeroWeights [read], [nonatomic], [assign]

A boolean to indicate whether the reduction should perform a weighted sum of feature channels with non-zero weights If false, computes a dot product of the feature channels and weights. If true, computes a dot product of the feature channels and weights divided by the number of non-zero weights

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

Mon Jul 9 2018 Version MetalPerformanceShaders-119.3