fn
sdpa_mask_layout
SdpaMask sdpa_mask_layout(const CpuStorage & mask, Dtype dt, int slice, int slices)slice is Lq * Lk, slices the flattened leading extent.
Raises
DtypeMismatchAn additive mask whose dtype is not the scores'
dt.InvalidArgumentA mask holding neither one slice nor all of them.