MPSCNNConvolutionGradientNode(3)

NAME
MPSCNNConvolutionGradientNode

SYNOPSIS

#import <MPSNNGraphNodes.h>

Inherits MPSNNGradientFilterNode, and <MPSNNTrainableNode>.

  Instance Methods
(nonnull instancetype) - initWithSourceGradient:sourceImage:convolutionGradientState:weights:

  Class Methods
(nonnull instancetype) + nodeWithSourceGradient:sourceImage:convolutionGradientState:weights:

  Additional Inherited Members

Method Documentation

  - (nonnull instancetype) initWithSourceGradient: (MPSNNImageNode *__nonnull) sourceGradient(MPSNNImageNode *__nonnull) sourceImage(MPSCNNConvolutionGradientStateNode *__nonnull) gradientState(nullable id< MPSCNNConvolutionDataSource >) weights
A node to represent the gradient calculation for convolution training.

Parameters:
    sourceGradient The input gradient from the 'downstream' gradient filter. Often that is a neuron gradient filter node.
    sourceImage The input image from the forward convolution node
    gradientState The gradient state from the forward convolution
    weights The data source from the forward convolution. It may not contain an integrated neuron. Similary, any normalization should be broken out into a separate node. Pass nil to use the weights from the forward convolution pass.

Returns:
    A MPSCNNConvolutionGradientNode

  + (nonnull instancetype) nodeWithSourceGradient: (MPSNNImageNode *__nonnull) sourceGradient(MPSNNImageNode *__nonnull) sourceImage(MPSCNNConvolutionGradientStateNode *__nonnull) gradientState(nullable id< MPSCNNConvolutionDataSource >) weights
A node to represent the gradient calculation for convolution training.

Parameters:
    sourceGradient The input gradient from the 'downstream' gradient filter. Often that is a neuron gradient filter node.
    sourceImage The input image from the forward convolution node
    gradientState The gradient state from the forward convolution
    weights The data source from the forward convolution. It may not contain an integrated neuron. Similary, any normalization should be broken out into a separate node. Pass nil to use the weights from the forward convolution pass.

Returns:
    A MPSCNNConvolutionGradientNode

Author

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