MPSCNNConvolutionNode(3) MetalPerformanceShaders.framework MPSCNNConvolutionNode(3)

MPSCNNConvolutionNode

#import <MPSNNGraphNodes.h>

Inherits MPSNNFilterNode.

Inherited by MPSCNNBinaryConvolutionNode, MPSCNNConvolutionTransposeNode, and MPSCNNFullyConnectedNode.


(nonnull instancetype) - initWithSource:weights:


(nonnull instancetype) + nodeWithSource:weights:


MPSNNConvolutionAccumulatorPrecisionOption accumulatorPrecision
MPSCNNConvolutionGradientStateNode * convolutionGradientState

- (nonnull instancetype) initWithSource: (MPSNNImageNode *__nonnull) sourceNode(nonnull id< MPSCNNConvolutionDataSource >) weights

Init a node representing a MPSCNNConvolution kernel

Parameters:

sourceNode The MPSNNImageNode representing the source MPSImage for the filter
weights A pointer to a valid object conforming to the MPSCNNConvolutionDataSource protocol. This object is provided by you to encapsulate storage for convolution weights and biases. If it is used for training, it may not have a neuron embedded in the convolution descriptor.

Returns:

A new MPSNNFilter node for a MPSCNNConvolution kernel.

Implemented in MPSCNNFullyConnectedNode.

Init an autoreleased not representing a MPSCNNConvolution kernel

Parameters:

sourceNode The MPSNNImageNode representing the source MPSImage for the filter
weights A pointer to a valid object conforming to the MPSCNNConvolutionDataSource protocol. This object is provided by you to encapsulate storage for convolution weights and biases. If it is used for training, it may not have a neuron embedded in the convolution descriptor.

Returns:

A new MPSNNFilter node for a MPSCNNConvolution kernel.

Implemented in MPSCNNFullyConnectedNode.

- (MPSNNConvolutionAccumulatorPrecisionOption) accumulatorPrecision [read], [write], [nonatomic], [assign]

Set the floating-point precision used by the convolution accumulator Default: MPSNNConvolutionAccumulatorPrecisionOptionFloat

- (MPSCNNConvolutionGradientStateNode*) convolutionGradientState [read], [nonatomic], [assign]

A node to represent a MPSCNNConvolutionGradientState object Use this if the convolution is mirrored by a convolution transpose node later on in the graph to make sure that the size of the image returned from the convolution transpose matches the size of the image passed in to this node.

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

Mon Jul 9 2018 Version MetalPerformanceShaders-119.3