• Docs >
  • Library API >
  • Template Function at::symint::_scaled_dot_product_cudnn_attention_backward(const at::Tensor&, const at::Tensor&, const at::Tensor&, const at::Tensor&, const at::Tensor&, const at::Tensor&, const at::Tensor&, const at::Tensor&, const at::Tensor&, const at::Tensor&, const at::Tensor&, c10::SymInt, c10::SymInt, double, bool, ::std::optional<double>)
  • Edit on GitHub
Shortcuts

Template Function at::symint::_scaled_dot_product_cudnn_attention_backward(const at::Tensor&, const at::Tensor&, const at::Tensor&, const at::Tensor&, const at::Tensor&, const at::Tensor&, const at::Tensor&, const at::Tensor&, const at::Tensor&, const at::Tensor&, const at::Tensor&, c10::SymInt, c10::SymInt, double, bool, ::std::optional<double>)

Function Documentation

template<typename T, typename = std::enable_if_t<std::is_same_v<T, c10::SymInt>>>
::std::tuple<at::Tensor, at::Tensor, at::Tensor> at::symint::_scaled_dot_product_cudnn_attention_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, const at::Tensor &philox_seed, const at::Tensor &philox_offset, const at::Tensor &attn_bias, const at::Tensor &cum_seq_q, const at::Tensor &cum_seq_k, c10::SymInt max_q, c10::SymInt max_k, double dropout_p, bool is_causal, ::std::optional<double> scale = ::std::nullopt)

Docs

Access comprehensive developer documentation for PyTorch

View Docs

Tutorials

Get in-depth tutorials for beginners and advanced developers

View Tutorials

Resources

Find development resources and get your questions answered

View Resources