| commit | b03fb49ed8d812ceba3741432ac1f9de3bd1650e | [log] [tgz] |
|---|---|---|
| author | PyTorch MergeBot <pytorchmergebot@users.noreply.github.com> | Thu May 02 00:57:39 2024 +0000 |
| committer | PyTorch MergeBot <pytorchmergebot@users.noreply.github.com> | Thu May 02 00:57:39 2024 +0000 |
| tree | 02d60bcb11febad624aad469e8830321ffcea952 | |
| parent | 9e24c263f998819f849bb8293323213101e9aefc [diff] |
Revert "[dynamo] use lazy disable dynamo for manual seed (#125196)" This reverts commit 8320b770fd9dc4671bc9eb0d535e14173e95cf45. Reverted https://github.com/pytorch/pytorch/pull/125196 on behalf of https://github.com/kit1980 due to breaking internal builds ([comment](https://github.com/pytorch/pytorch/pull/125196#issuecomment-2089355842))
diff --git a/torch/_dynamo/__init__.py b/torch/_dynamo/__init__.py index b1e970e..05d5866 100644 --- a/torch/_dynamo/__init__.py +++ b/torch/_dynamo/__init__.py
@@ -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")