latest (dev)
Copy
Latest development documentation · Updated 2026-10-08
SDPBackend
- class tensorplay.nn.attention.SDPBackend
An enum-like class that contains the different backends for scaled dot product attention.
… warning:: This class is in beta and subject to change.
This backend class is designed to be used with the sdpa_kernel context manager.See :func: tensorplay.nn.attention.sdpa_kernel for more details.
Members:
ERROR
MATH
FLASH_ATTENTION
EFFICIENT_ATTENTION
CUDNN_ATTENTION
OVERRIDEABLE
- SDPBackend.name -> str
Help improve this page
Found an error, an unclear step, or a missing example?
Was this page helpful?

