.TH "MPSCNNYOLOLossNode" 3 "Mon Jul 9 2018" "Version MetalPerformanceShaders-119.3" "MetalPerformanceShaders.framework" \" -*- nroff -*- .ad l .nh .SH NAME MPSCNNYOLOLossNode .SH SYNOPSIS .br .PP .PP \fC#import \fP .PP Inherits \fBMPSNNFilterNode\fP\&. .SS "Instance Methods" .in +1c .ti -1c .RI "(nonnull instancetype) \- \fBinitWithSource:lossDescriptor:\fP" .br .ti -1c .RI "(\fBMPSNNGradientFilterNode\fP *__nonnull) \- \fBgradientFilterWithSources:\fP" .br .in -1c .SS "Class Methods" .in +1c .ti -1c .RI "(nonnull instancetype) + \fBnodeWithSource:lossDescriptor:\fP" .br .in -1c .SS "Properties" .in +1c .ti -1c .RI "\fBMPSNNLabelsNode\fP * \fBinputLabels\fP" .br .in -1c .SH "Detailed Description" .PP 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\&. .SH "Method Documentation" .PP .SS "\- (\fBMPSNNGradientFilterNode\fP*__nonnull) gradientFilterWithSources: (NSArray< \fBMPSNNImageNode\fP * > *__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\&. .PP Reimplemented from \fBMPSNNFilterNode\fP\&. .SS "\- (nonnull instancetype) initWithSource: (\fBMPSNNImageNode\fP *__nonnull) source(\fBMPSCNNYOLOLossDescriptor\fP *__nonnull) descriptor" .SS "+ (nonnull instancetype) nodeWithSource: (\fBMPSNNImageNode\fP *__nonnull) source(\fBMPSCNNYOLOLossDescriptor\fP *__nonnull) descriptor" .SH "Property Documentation" .PP .SS "\- (\fBMPSNNLabelsNode\fP*) inputLabels\fC [read]\fP, \fC [nonatomic]\fP, \fC [retain]\fP" Get the input node for labes and weights, for example to set the handle .SH "Author" .PP Generated automatically by Doxygen for MetalPerformanceShaders\&.framework from the source code\&.