Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

mpscnnupsamplinggradient(3) [mojave man page]

MPSCNNUpsamplingGradient(3)				 MetalPerformanceShaders.framework			       MPSCNNUpsamplingGradient(3)

NAME
MPSCNNUpsamplingGradient SYNOPSIS
#import <MPSCNNUpsampling.h> Inherits MPSCNNGradientKernel. Inherited by MPSCNNUpsamplingBilinearGradient, and MPSCNNUpsamplingNearestGradient. Instance Methods (nonnull instancetype) - initWithDevice: Properties double scaleFactorX double scaleFactorY Additional Inherited Members Detailed Description This depends on Metal.framework The MPSCNNUpsamplingGradient filter is used for training. It is the backward filter for the MPSCNNUpsampling filter. It operates on the gradient input, specifically, it reduces the size of the gradient input in the x and y dimensions. The number of output feature channels remains the same as the number of input feature channels. The scaleFactor must be an integer value >= 1. The default value is 1. If scaleFactor == 1, the filter acts as a copy kernel. Nearest and bilinear variants are supported. For example, for the nearest variant with scaleFactorX = scaleFactorY = 2, the forward pass produced the following output: Input: Output: a a b b a b a a b b c d c c d d c c d d To upsample the image, the input data is replicated. And, the backward pass for the above froward pass is computed in the following way: Input: Output: a1 a2 b1 b2 a2 a3 b3 b4 x y c1 c2 d1 d2 z w c3 c4 d3 d4 where x = a1 + a2 + a3 + a4 y = b1 + b2 + b3 + b4 z = c1 + c2 + c3 + c4 w = d1 + d2 + d3 + d4 Method Documentation - (nonnull instancetype) initWithDevice: (nonnull id< MTLDevice >) device Standard init with default properties per filter type Parameters: device The device that the filter will be used on. May not be NULL. Returns: A 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. Reimplemented from MPSCNNGradientKernel. Property Documentation - scaleFactorX [read], [nonatomic], [assign] The downsampling scale factor for the x dimension. The default value is 1. - scaleFactorY [read], [nonatomic], [assign] The downsampling scale factor for the y dimension. The default value is 1. Author Generated automatically by Doxygen for MetalPerformanceShaders.framework from the source code. Version MetalPerformanceShaders-100 Thu Feb 8 2018 MPSCNNUpsamplingGradient(3)

Check Out this Related Man Page

MPSCNNUpsamplingBilinearNode(3) 			 MetalPerformanceShaders.framework			   MPSCNNUpsamplingBilinearNode(3)

NAME
MPSCNNUpsamplingBilinearNode SYNOPSIS
#import <MPSNNGraphNodes.h> Inherits MPSNNFilterNode. Instance Methods (nonnull instancetype) - initWithSource:integerScaleFactorX:integerScaleFactorY: Class Methods (nonnull instancetype) + nodeWithSource:integerScaleFactorX:integerScaleFactorY: Properties double scaleFactorX double scaleFactorY Detailed Description Node representing a MPSCNNUpsamplingBilinear kernel Method Documentation - (nonnull instancetype) initWithSource: (MPSNNImageNode *__nonnull) sourceNode(NSUInteger) integerScaleFactorX(NSUInteger) integerScaleFactorY Init a node representing a MPSCNNUpsamplingBilinear kernel Parameters: sourceNode The MPSNNImageNode representing the source MPSImage for the filter integerScaleFactorX The upsampling factor for the x dimension. integerScaleFactorY The upsampling factor for the y dimension. Returns: A new MPSNNFilter node for a MPSCNNUpsamplingBilinear kernel. + (nonnull instancetype) nodeWithSource: (MPSNNImageNode *__nonnull) sourceNode(NSUInteger) integerScaleFactorX(NSUInteger) integerScaleFactorY Init a autoreleased node representing a MPSCNNUpsamplingBilinear kernel Parameters: sourceNode The MPSNNImageNode representing the source MPSImage for the filter integerScaleFactorX The upsampling factor for the x dimension. integerScaleFactorY The upsampling factor for the y dimension. Returns: A new MPSNNFilter node for a MPSCNNUpsamplingBilinear kernel. Property Documentation - (double) scaleFactorX [read], [nonatomic], [assign] - (double) scaleFactorY [read], [nonatomic], [assign] Author Generated automatically by Doxygen for MetalPerformanceShaders.framework from the source code. Version MetalPerformanceShaders-100 Thu Feb 8 2018 MPSCNNUpsamplingBilinearNode(3)
Man Page