oa::FnMatrix::flashAttentionCausal

flashAttentionCausal: IO-aware causal scaled dot-product attention. Q/K/V and output use contiguous [batchHeads, sequence, headDim] storage.

Function Documentation

Matrix oa::FnMatrix::flashAttentionCausal( const Matrix & inQ, const Matrix & inK, const Matrix & inV, oa::F32 inScale )
flashAttentionCausal: IO-aware causal scaled dot-product attention. Q/K/V and output use contiguous [batchHeads, sequence, headDim] storage.

Parameters

inQ
const Matrix &

inK
const Matrix &

inV
const Matrix &

inScale
oa::F32

Returns

Matrix

The declared return value.