.TH "MPSNNReduceFeatureChannelsAndWeightsSum" 3 "Mon Jul 9 2018" "Version MetalPerformanceShaders-119.3" "MetalPerformanceShaders.framework" \" -*- nroff -*- .ad l .nh .SH NAME MPSNNReduceFeatureChannelsAndWeightsSum .SH SYNOPSIS .br .PP .PP \fC#import \fP .PP Inherits \fBMPSNNReduceBinary\fP\&. .SS "Instance Methods" .in +1c .ti -1c .RI "(nonnull instancetype) \- \fBinitWithDevice:\fP" .br .ti -1c .RI "(nonnull instancetype) \- \fBinitWithDevice:doWeightedSumByNonZeroWeights:\fP" .br .in -1c .SS "Properties" .in +1c .ti -1c .RI "bool \fBdoWeightedSumByNonZeroWeights\fP" .br .in -1c .SS "Additional Inherited Members" .SH "Method Documentation" .PP .SS "\- (nonnull instancetype) initWithDevice: (nonnull id< MTLDevice >) device" Specifies information to apply the reduction operation on an image\&. .PP \fBParameters:\fP .RS 4 \fIdevice\fP The device the filter will run on .RE .PP \fBReturns:\fP .RS 4 \fBA\fP valid \fBMPSNNReduceFeatureChannelsAndWeightsMean\fP object or nil, if failure\&. .RE .PP .PP Reimplemented from \fBMPSNNReduceBinary\fP\&. .SS "\- (nonnull instancetype) \fBinitWithDevice:\fP (nonnull id< MTLDevice >) device(bool) doWeightedSumByNonZeroWeights" Specifies information to apply the reduction operation on an image\&. .PP \fBParameters:\fP .RS 4 \fIdevice\fP The device the filter will run on .br \fIdoWeightedSumByNonZeroWeights\fP \fBA\fP boolean to indicate whether to compute a weighted sum or weighted sum divided by the number of non-zero weights .RE .PP \fBReturns:\fP .RS 4 \fBA\fP valid \fBMPSNNReduceFeatureChannelsAndWeightsSum\fP object or nil, if failure\&. .RE .PP .SH "Property Documentation" .PP .SS "\- (bool) doWeightedSumByNonZeroWeights\fC [read]\fP, \fC [nonatomic]\fP, \fC [assign]\fP" \fBA\fP 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 .SH "Author" .PP Generated automatically by Doxygen for MetalPerformanceShaders\&.framework from the source code\&.