torch_sys::c_generated

Function atg__flash_attention_backward

source
pub unsafe extern "C" fn atg__flash_attention_backward(
    out__: *mut *mut C_tensor,
    grad_out_: *mut C_tensor,
    query_: *mut C_tensor,
    key_: *mut C_tensor,
    value_: *mut C_tensor,
    out_: *mut C_tensor,
    logsumexp_: *mut C_tensor,
    cum_seq_q_: *mut C_tensor,
    cum_seq_k_: *mut C_tensor,
    max_q_: i64,
    max_k_: i64,
    dropout_p_: f64,
    is_causal_: c_int,
    philox_seed_: *mut C_tensor,
    philox_offset_: *mut C_tensor,
    scale_v: f64,
    scale_null: i8,
    window_size_left_v: i64,
    window_size_left_null: i8,
    window_size_right_v: i64,
    window_size_right_null: i8,
)