MPSNNArithmeticGradientNode(3) MetalPerformanceShaders.framework MPSNNArithmeticGradientNode(3)

MPSNNArithmeticGradientNode

#import <MPSNNGraphNodes.h>

Inherits MPSNNGradientFilterNode.

Inherited by MPSNNAdditionGradientNode, MPSNNMultiplicationGradientNode, and MPSNNSubtractionGradientNode.


(nonnull instancetype) - initWithSourceGradient:sourceImage:gradientState:isSecondarySourceFilter:
(nonnull instancetype) - initWithGradientImages:forwardFilter:isSecondarySourceFilter:


(nonnull instancetype) + nodeWithSourceGradient:sourceImage:gradientState:isSecondarySourceFilter:


float primaryScale
float secondaryScale
float bias
NSUInteger secondaryStrideInPixelsX
NSUInteger secondaryStrideInPixelsY
NSUInteger secondaryStrideInFeatureChannels
float minimumValue
float maximumValue
BOOL isSecondarySourceFilter

- (nonnull instancetype) initWithGradientImages: (NSArray< MPSNNImageNode * > *__nonnull) gradientImages(MPSNNFilterNode *__nonnull) filter(BOOL) isSecondarySourceFilter

create a new arithmetic gradient node See also -[MPSCNNNeuronNode gradientFilterNodesWithSources:] for an easier way to do this.

Parameters:

gradientImages The input gradient from the 'downstream' gradient filter and the source input image from the forward pass (primary or secondary).
filter The matching filter node from the forward pass.
isSecondarySourceFilter The isSecondarySourceFilter property is used to indicate whether the arithmetic gradient filter is operating on the primary or secondary source image from the forward pass.

- (nonnull instancetype) initWithSourceGradient: (MPSNNImageNode *__nonnull) sourceGradient(MPSNNImageNode *__nonnull) sourceImage(MPSNNBinaryGradientStateNode *__nonnull) gradientState(BOOL) isSecondarySourceFilter

create a new arithmetic gradient node See also -[MPSCNNNeuronNode gradientFilterNodesWithSources:] for an easier way to do this.

Parameters:

sourceGradient The input gradient from the 'downstream' gradient filter.
sourceImage The source input image from the forward pass (primary or secondary).
gradientState The gradient state produced by the concatenation filter, consumed by this filter.

create a new arithmetic gradient node See also -[MPSCNNNeuronNode gradientFilterNodesWithSources:] for an easier way to do this.

Parameters:

sourceGradient The input gradient from the 'downstream' gradient filter.
sourceImage The source input image from the forward pass (primary or secondary).
gradientState The gradient state produced by the concatenation filter, consumed by this filter.

- (float) bias [read], [write], [nonatomic], [assign]

- (BOOL) isSecondarySourceFilter [read], [nonatomic], [assign]

- (float) maximumValue [read], [write], [nonatomic], [assign]

- (float) minimumValue [read], [write], [nonatomic], [assign]

- (float) primaryScale [read], [write], [nonatomic], [assign]

- (float) secondaryScale [read], [write], [nonatomic], [assign]

- (NSUInteger) secondaryStrideInFeatureChannels [read], [write], [nonatomic], [assign]

- (NSUInteger) secondaryStrideInPixelsX [read], [write], [nonatomic], [assign]

- (NSUInteger) secondaryStrideInPixelsY [read], [write], [nonatomic], [assign]

Generated automatically by Doxygen for MetalPerformanceShaders.framework from the source code.

Mon Jul 9 2018 Version MetalPerformanceShaders-119.3