std1.0.0-beta-7 SafeC docs

std :: ml::gpu_mps

Function std::mps_flash_attention_ex

#include <std/ml/gpu_mps.h> source ยท definition

int mps_flash_attention_ex(
    struct MpsBuf q,
    struct MpsBuf k,
    struct MpsBuf v,
    struct MpsBuf out,
    struct MpsAttnShape s,
    int dtype,
    float scale,
    int causal,
)