.TH "MPSMatrixLogSoftMaxGradient" 3 "Mon Jul 9 2018" "Version MetalPerformanceShaders-119.3" "MetalPerformanceShaders.framework" \" -*- nroff -*- .ad l .nh .SH NAME MPSMatrixLogSoftMaxGradient .SH SYNOPSIS .br .PP .PP \fC#import \fP .PP Inherits \fBMPSMatrixSoftMaxGradient\fP\&. .SS "Additional Inherited Members" .SH "Detailed Description" .PP This depends on Metal\&.framework\&. .PP Computes the gradient corresponding to a forward \fBMPSMatrixLogSoftMax\fP object\&. .PP \fBA\fP \fBMPSMatrixLogSoftMaxGradient\fP object computes: .PP .nf dL_dX_ij = dL_dY_ij - exp(Y_ij * sum_k(dL_dY_ik)) Where dL_dX is the resulting gradient of the loss function with respect to the original input to the forward MPSMatrixLogSoftMax operation, Y is the output of the forward MPSMatrixLogSoftMax operation, and dL_dY is the gradient of the loss function with respect to Y. .fi .PP .SH "Author" .PP Generated automatically by Doxygen for MetalPerformanceShaders\&.framework from the source code\&.