MPSNNReduceFeatureChannelsAndWeightsSum(3) MetalPerformanceShaders.framework MPSNNReduceFeatureChannelsAndWeightsSum(3)
NAME
MPSNNReduceFeatureChannelsAndWeightsSum
SYNOPSIS
#import <MPSNNReduce.h>
Inherits MPSNNReduceBinary.
Instance Methods
(nonnull instancetype) - initWithDevice:
(nonnull instancetype) - initWithDevice:doWeightedSumByNonZeroWeights:
Properties
bool doWeightedSumByNonZeroWeights
Additional Inherited Members
Method Documentation
- (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.
Property Documentation
- (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
Author
Generated automatically by Doxygen for MetalPerformanceShaders.framework from the source code.
Version MetalPerformanceShaders-100 Thu Feb 8 2018 MPSNNReduceFeatureChannelsAndWeightsSum(3)