mirror of
https://github.com/pytorch/pytorch.git
synced 2025-10-20 21:14:14 +08:00
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:
committed by
PyTorch MergeBot
parent
224beecee6
commit
4ba51bb2c4
@ -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()
|
||||
|
Reference in New Issue
Block a user