oa::FnMatrix::softmaxScaledMaskedBwd
softmaxScaledMaskedBwd: backward for the fused attention score op. Returns dScores = softmaxOut * (dOut - sum(dOut * softmaxOut)) * scale.
Function Documentation
softmaxScaledMaskedBwd: backward for the fused attention score op. Returns dScores = softmaxOut * (dOut - sum(dOut * softmaxOut)) * scale.
Parameters
inForwardOutputconst Matrix &—
inGradOutputconst Matrix &—
inScaleoa::F32—
Returns
MatrixThe declared return value.