.TH "MPSCNNPoolingL2Norm" 3 "Mon Jul 9 2018" "Version MetalPerformanceShaders-119.3" "MetalPerformanceShaders.framework" \" -*- nroff -*- .ad l .nh .SH NAME MPSCNNPoolingL2Norm .SH SYNOPSIS .br .PP .PP \fC#import \fP .PP Inherits \fBMPSCNNPooling\fP\&. .SS "Instance Methods" .in +1c .ti -1c .RI "(nonnull instancetype) \- \fBinitWithDevice:kernelWidth:kernelHeight:strideInPixelsX:strideInPixelsY:\fP" .br .ti -1c .RI "(nullable instancetype) \- \fBinitWithCoder:device:\fP" .br .in -1c .SS "Additional Inherited Members" .SH "Detailed Description" .PP This depends on Metal\&.framework Specifies the L2-norm pooling filter\&. For each pixel, returns L2-Norm of pixels in the kernelWidth x kernelHeight filter region\&. out[c,x,y] = sqrt ( sum_{dx,dy} in[c,x+dx,y+dy] * in[c,x+dx,y+dy] )\&. .SH "Method Documentation" .PP .SS "\- (nullable instancetype) \fBinitWithCoder:\fP (NSCoder *__nonnull) aDecoder(nonnull id< MTLDevice >) device" \fBNSSecureCoding\fP compatability See \fBMPSKernel::initWithCoder\fP\&. .PP \fBParameters:\fP .RS 4 \fIaDecoder\fP The NSCoder subclass with your serialized \fBMPSCNNPooling\fP .br \fIdevice\fP The MTLDevice on which to make the \fBMPSCNNPooling\fP .RE .PP \fBReturns:\fP .RS 4 \fBA\fP new \fBMPSCNNPooling\fP object, or nil if failure\&. .RE .PP .PP Reimplemented from \fBMPSCNNPooling\fP\&. .SS "\- (nonnull instancetype) \fBinitWithDevice:\fP (nonnull id< MTLDevice >) device(NSUInteger) kernelWidth(NSUInteger) kernelHeight(NSUInteger) strideInPixelsX(NSUInteger) strideInPixelsY" Initialize a \fBMPSCNNPoolingL2Norm\fP pooling filter .PP \fBParameters:\fP .RS 4 \fIdevice\fP The device the filter will run on .br \fIkernelWidth\fP The width of the kernel\&. Can be an odd or even value\&. .br \fIkernelHeight\fP The height of the kernel\&. Can be an odd or even value\&. .br \fIstrideInPixelsX\fP The output stride (downsampling factor) in the x dimension\&. .br \fIstrideInPixelsY\fP The output stride (downsampling factor) in the y dimension\&. .RE .PP \fBReturns:\fP .RS 4 \fBA\fP valid \fBMPSCNNPooling\fP object or nil, if failure\&. .RE .PP .PP Reimplemented from \fBMPSCNNPooling\fP\&. .SH "Author" .PP Generated automatically by Doxygen for MetalPerformanceShaders\&.framework from the source code\&.