MPSCNNUpsamplingNearestGradientNode(3) MetalPerformanceShaders.framework MPSCNNUpsamplingNearestGradientNode(3)
NAME
MPSCNNUpsamplingNearestGradientNode
SYNOPSIS
#import <MPSNNGraphNodes.h>
Inherits MPSNNGradientFilterNode.
Instance Methods
(nonnull instancetype) - initWithSourceGradient:sourceImage:gradientState:scaleFactorX:scaleFactorY:
Class Methods
(nonnull instancetype) + nodeWithSourceGradient:sourceImage:gradientState:scaleFactorX:scaleFactorY:
Properties
double scaleFactorX
double scaleFactorY
Detailed Description
Node representing a MPSCNNUpsamplingNearest kernel
Method Documentation
- (nonnull instancetype) initWithSourceGradient: (MPSNNImageNode *__nonnull) sourceGradient(MPSNNImageNode *__nonnull)
sourceImage(MPSNNGradientStateNode *__nonnull) gradientState(double) scaleFactorX(double) scaleFactorY
A node to represent the gradient calculation for nearest upsampling training. [forwardFilter gradientFilterWithSources:] is a more
convient way to do this.
Parameters:
sourceGradient The input gradient from the 'downstream' gradient filter.
sourceImage The input image from the forward filter node
gradientState The gradient state from the forward filter
scaleFactorX The X scale factor from the forward pass
scaleFactorY The Y scale factor from the forward pass
Returns:
A MPSCNNUpsamplingNearestGradientNode
+ (nonnull instancetype) nodeWithSourceGradient: (MPSNNImageNode *__nonnull) sourceGradient(MPSNNImageNode *__nonnull)
sourceImage(MPSNNGradientStateNode *__nonnull) gradientState(double) scaleFactorX(double) scaleFactorY
A node to represent the gradient calculation for nearest upsampling training. [forwardFilter gradientFilterWithSources:] is a more
convient way to do this.
Parameters:
sourceGradient The input gradient from the 'downstream' gradient filter.
sourceImage The input image from the forward filter node
gradientState The gradient state from the forward filter
scaleFactorX The X scale factor from the forward pass
scaleFactorY The Y scale factor from the forward pass
Returns:
A MPSCNNUpsamplingNearestGradientNode
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 MPSCNNUpsamplingNearestGradientNode(3)