Skip to content

Commit

Permalink
Add keys used for templated attention impls (pytorch#122423)
Browse files Browse the repository at this point in the history
# Summary

Mypy will complain that these attributes dont exist for this PR: pytorch#121845
Pull Request resolved: pytorch#122423
Approved by: https://github.com/bdhirsh
  • Loading branch information
drisspg authored and pytorchmergebot committed Mar 21, 2024
1 parent 224beec commit 4ba51bb
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions torchgen/model.py
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,9 @@ class DispatchKey(Enum):
NestedTensor = auto()
Dense = auto()

PythonTLSSnapshot = auto()
PreDispatch = auto()
PythonDispatcher = auto()
Python = auto()
FuncTorchDynamicLayerBackMode = auto()
ZeroTensor = auto()
Expand All @@ -106,6 +108,8 @@ class DispatchKey(Enum):
AutogradNestedTensor = auto()
Tracer = auto()
Autocast = auto()
AutocastCPU = auto()
AutocastCUDA = auto()
Batched = auto()
VmapMode = auto()
FuncTorchGradWrapper = auto()
Expand Down

0 comments on commit 4ba51bb

Please sign in to comment.