Skip to content

Commit

Permalink
Revert "[dynamo] use lazy disable dynamo for manual seed (#125196)"
Browse files Browse the repository at this point in the history
This reverts commit 8320b77.

Reverted #125196 on behalf of https://github.com/kit1980 due to breaking internal builds ([comment](#125196 (comment)))
  • Loading branch information
pytorchmergebot committed May 2, 2024
1 parent 9e24c26 commit b03fb49
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion torch/_dynamo/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@

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

Expand Down

0 comments on commit b03fb49

Please sign in to comment.