Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix broken torch._inductor.config import (#104477)
This fixes the bug in profiler code exposed by #104368 that introduced on the fact that `import torch._dynamo` also imports `torch._inductor.config`: ``` $ python -c "import torch._inductor;print(torch._inductor.config)" Traceback (most recent call last): File "<string>", line 1, in <module> AttributeError: module 'torch._inductor' has no attribute 'config' (base) $ python -c "import torch._dynamo;print(torch._inductor.config)" <module 'torch._inductor.config' from '/home/nshulga/git/pytorch/pytorch/torch/_inductor/config.py'> ``` ### Testing D47159397 Pull Request resolved: #104477 Approved by: https://github.com/aaronenyeshi, https://github.com/malfet
- Loading branch information