Skip to content

Commit

Permalink
[dynamo] use lazy disable dynamo for manual seed (#125196)
Browse files Browse the repository at this point in the history
  • Loading branch information
anijain2305 authored and petrex committed May 3, 2024
1 parent 9dcd72f commit cf525f6
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 = disable(torch.manual_seed)
torch.manual_seed = torch._disable_dynamo(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 cf525f6

Please sign in to comment.