oa::FnMatrix::softmaxScaledMasked
softmaxScaledMasked: fused transformer attention score normalisation. Computes: out = softmax(scores * scale + mask) over the last dimension.
Function Documentation
softmaxScaledMasked: fused transformer attention score normalisation. Computes: out = softmax(scores * scale + mask) over the last dimension.
Parameters
inScoresconst Matrix &—
inMaskconst Matrix &—
inScaleoa::F32—
Returns
MatrixThe declared return value.