.TH "MPSNNReduceUnary" 3 "Mon Jul 9 2018" "Version MetalPerformanceShaders-119.3" "MetalPerformanceShaders.framework" \" -*- nroff -*- .ad l .nh .SH NAME MPSNNReduceUnary .SH SYNOPSIS .br .PP .PP \fC#import \fP .PP Inherits \fBMPSCNNKernel\fP\&. .PP Inherited by \fBMPSNNReduceColumnMax\fP, \fBMPSNNReduceColumnMean\fP, \fBMPSNNReduceColumnMin\fP, \fBMPSNNReduceColumnSum\fP, \fBMPSNNReduceFeatureChannelsArgumentMax\fP, \fBMPSNNReduceFeatureChannelsArgumentMin\fP, \fBMPSNNReduceFeatureChannelsMax\fP, \fBMPSNNReduceFeatureChannelsMean\fP, \fBMPSNNReduceFeatureChannelsMin\fP, \fBMPSNNReduceFeatureChannelsSum\fP, \fBMPSNNReduceRowMax\fP, \fBMPSNNReduceRowMean\fP, \fBMPSNNReduceRowMin\fP, and \fBMPSNNReduceRowSum\fP\&. .SS "Instance Methods" .in +1c .ti -1c .RI "(nonnull instancetype) \- \fBinitWithDevice:\fP" .br .in -1c .SS "Properties" .in +1c .ti -1c .RI "MTLRegion \fBclipRectSource\fP" .br .in -1c .SS "Additional Inherited Members" .SH "Detailed Description" .PP The MPSNNReduce performs a reduction operation The reduction operations supported are: .IP "\(bu" 2 Reduce row min .IP "\(bu" 2 Reduce column min .IP "\(bu" 2 Reduce feature channels min .IP "\(bu" 2 Reduce row max .IP "\(bu" 2 Reduce column max .IP "\(bu" 2 Reduce feature channels max .IP "\(bu" 2 Reduce row mean .IP "\(bu" 2 Reduce column mean .IP "\(bu" 2 Reduce feature channels mean .IP "\(bu" 2 Reduce row sum .IP "\(bu" 2 Reduce column sum .IP "\(bu" 2 Reduce feature channels sum .PP .SH "Method Documentation" .PP .SS "\- (nonnull instancetype) initWithDevice: (nonnull id< MTLDevice >) device" Standard init with default properties per filter type .PP \fBParameters:\fP .RS 4 \fIdevice\fP The device that the filter will be used on\&. May not be NULL\&. .RE .PP \fBReturns:\fP .RS 4 \fBA\fP pointer to the newly initialized object\&. This will fail, returning nil if the device is not supported\&. Devices must be MTLFeatureSet_iOS_GPUFamily2_v1 or later\&. .RE .PP .PP Reimplemented from \fBMPSCNNKernel\fP\&. .PP Reimplemented in \fBMPSNNReduceFeatureChannelsSum\fP, \fBMPSNNReduceRowMin\fP, \fBMPSNNReduceColumnMin\fP, \fBMPSNNReduceFeatureChannelsMin\fP, \fBMPSNNReduceFeatureChannelsArgumentMin\fP, \fBMPSNNReduceRowMax\fP, \fBMPSNNReduceColumnMax\fP, \fBMPSNNReduceFeatureChannelsMax\fP, \fBMPSNNReduceFeatureChannelsArgumentMax\fP, \fBMPSNNReduceRowMean\fP, \fBMPSNNReduceColumnMean\fP, \fBMPSNNReduceFeatureChannelsMean\fP, \fBMPSNNReduceRowSum\fP, and \fBMPSNNReduceColumnSum\fP\&. .SH "Property Documentation" .PP .SS "\- clipRectSource\fC [read]\fP, \fC [write]\fP, \fC [nonatomic]\fP, \fC [assign]\fP" The source rectangle to use when reading data\&. \fBA\fP MTLRegion that indicates which part of the source to read\&. If the clipRectSource does not lie completely within the source image, the intersection of the image bounds and clipRectSource will be used\&. The clipRectSource replaces the \fBMPSCNNKernel\fP offset parameter for this filter\&. The latter is ignored\&. Default: MPSRectNoClip, use the entire source texture\&. .SH "Author" .PP Generated automatically by Doxygen for MetalPerformanceShaders\&.framework from the source code\&.