oa::FnMatrix::flashAttentionCausal
flashAttentionCausal: IO-aware causal scaled dot-product attention. Q/K/V and output use contiguous [batchHeads, sequence, headDim] storage.
Function Documentation
flashAttentionCausal: IO-aware causal scaled dot-product attention. Q/K/V and output use contiguous [batchHeads, sequence, headDim] storage.
Parameters
inQconst Matrix &—
inKconst Matrix &—
inVconst Matrix &—
inScaleoa::F32—
Returns
MatrixThe declared return value.