Skip to content

Commit 4c7314e

Browse files
pytorchbotmlazos
andauthored
[Dynamo] Fix einops regression (pytorch#154053)
[Dynamo] Fix einops regression (pytorch#153925) Fixes pytorch#153476 Pull Request resolved: pytorch#153925 Approved by: https://github.com/williamwen42 (cherry picked from commit d44074f) Co-authored-by: Michael Lazos <[email protected]>
1 parent ff4dddf commit 4c7314e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

torch/_dynamo/decorators.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -685,10 +685,10 @@ def _allow_in_graph_einops():
685685
if mod is None:
686686
return
687687
else:
688-
# version > 0.7.0 does allow_in_graph out of tree
688+
# version > 0.8.1 does allow_in_graph out of tree
689689
# for BC we need to keep this in fbcode
690690
# internal xref https://fb.workplace.com/groups/1026248852325474/permalink/1107135774236781/
691-
if Version(mod.__version__) < Version("0.7.0") or is_fbcode():
691+
if Version(mod.__version__) <= Version("0.8.1") or is_fbcode():
692692
import einops
693693

694694
try:

0 commit comments

Comments
 (0)