Skip to content

Commit b03fb49

Browse files
Revert "[dynamo] use lazy disable dynamo for manual seed (#125196)"
This reverts commit 8320b77. Reverted #125196 on behalf of https://github.com/kit1980 due to breaking internal builds ([comment](#125196 (comment)))
1 parent 9e24c26 commit b03fb49

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

torch/_dynamo/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@
6161

6262
# Wrap manual_seed with the disable decorator.
6363
# Can't do it at its implementation due to dependency issues.
64-
torch.manual_seed = torch._disable_dynamo(torch.manual_seed)
64+
torch.manual_seed = disable(torch.manual_seed)
6565
# Add the new manual_seed to the builtin registry.
6666
torch.jit._builtins._register_builtin(torch.manual_seed, "aten::manual_seed")
6767

0 commit comments

Comments
 (0)