mirror of
https://github.com/zebrajr/pytorch.git
synced 2025-12-06 12:20:52 +01:00
[dynamo] fix potential circular import error in decorators.py (#153217)
Differential Revision: [D74442043](https://our.internmc.facebook.com/intern/diff/D74442043) Pull Request resolved: https://github.com/pytorch/pytorch/pull/153217 Approved by: https://github.com/jansel
This commit is contained in:
parent
e6a9067260
commit
8521a690f7
|
|
@ -779,8 +779,12 @@ _allowed_config_patches = (
|
|||
"dont_skip_tracing",
|
||||
)
|
||||
|
||||
from . import config
|
||||
|
||||
|
||||
for name in _allowed_config_patches:
|
||||
assert hasattr(torch._dynamo.config, name), "nonexistent config"
|
||||
assert hasattr(config, name), "nonexistent config"
|
||||
del config
|
||||
|
||||
|
||||
def _patch_dynamo_config_check(changes: dict[str, Any]):
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user