Function at::_scaled_dot_product_flash_attention_for_cpu_backward¶
Defined in File Functions.h
Function Documentation¶
-
inline ::std::tuple<at::Tensor, at::Tensor, at::Tensor> at::_scaled_dot_product_flash_attention_for_cpu_backward(const at::Tensor &grad_out, const at::Tensor &query, const at::Tensor &key, const at::Tensor &value, const at::Tensor &out, const at::Tensor &logsumexp, double dropout_p, bool is_causal, const ::std::optional<at::Tensor> &attn_mask = {}, ::std::optional<double> scale = ::std::nullopt)¶