Query: mpscnnlossnode
OS: mojave
Section: 3
Format: Original Unix Latex Style Formatted with HTML and a Horizontal Scroll Bar
MPSCNNLossNode(3) MetalPerformanceShaders.framework MPSCNNLossNode(3)NAMEMPSCNNLossNodeSYNOPSIS#import <MPSNNGraphNodes.h> Inherits MPSNNFilterNode. Instance Methods (nonnull instancetype) - initWithSource:lossDescriptor: (MPSNNGradientFilterNode *__nonnull) - gradientFilterWithSources: Class Methods (nonnull instancetype) + nodeWithSource:lossDescriptor: Properties MPSNNLabelsNode * inputLabels Detailed Description This node calculates loss information during training typically immediately after the inference portion of network evaluation is performed. The result image of the loss operations is typically the first gradient image to be comsumed by the gradient passes that work their way back up the graph. In addition, the node will update the loss image in the MPSNNLabels with the desired estimate of correctness. Method Documentation - (MPSNNGradientFilterNode*__nonnull) gradientFilterWithSources: (NSArray< MPSNNImageNode * > *__nonnull) gradientImages The loss filter is its own gradient filter and doesn't provide a corresponding gradient node. The image returned by the loss filter is the gradient image to be consumed by the gradient filters corresponding to preceeding inference nodes. Reimplemented from MPSNNFilterNode. - (nonnull instancetype) initWithSource: (MPSNNImageNode *__nonnull) source(MPSCNNLossDescriptor *__nonnull) descriptor + (nonnull instancetype) nodeWithSource: (MPSNNImageNode *__nonnull) source(MPSCNNLossDescriptor *__nonnull) descriptor Property Documentation - (MPSNNLabelsNode*) inputLabels [read], [nonatomic], [retain] Get the input node for labes and weights, for example to set the handle Author Generated automatically by Doxygen for MetalPerformanceShaders.framework from the source code. Version MetalPerformanceShaders-100 Thu Feb 8 2018 MPSCNNLossNode(3)