Add keys used for templated attention impls (#122423)

# Summary

Mypy will complain that these attributes dont exist for this PR: https://github.com/pytorch/pytorch/pull/121845/
Pull Request resolved: https://github.com/pytorch/pytorch/pull/122423
Approved by: https://github.com/bdhirsh
This commit is contained in:
drisspg
2024-03-21 22:16:49 +00:00
committed by PyTorch MergeBot
parent 224beecee6
commit 4ba51bb2c4

View File

@ -93,7 +93,9 @@ class DispatchKey(Enum):
NestedTensor = auto()
Dense = auto()
PythonTLSSnapshot = auto()
PreDispatch = auto()
PythonDispatcher = auto()
Python = auto()
FuncTorchDynamicLayerBackMode = auto()
ZeroTensor = auto()
@ -106,6 +108,8 @@ class DispatchKey(Enum):
AutogradNestedTensor = auto()
Tracer = auto()
Autocast = auto()
AutocastCPU = auto()
AutocastCUDA = auto()
Batched = auto()
VmapMode = auto()
FuncTorchGradWrapper = auto()