-
Notifications
You must be signed in to change notification settings - Fork 21.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix broken torch._inductor.config import #104477
Conversation
Summary: The test is failing with `module 'torch._inductor' has no attribute 'config'` error after lazy import `_inductor`. So DK is trying to revert it D47150544. https://www.internalfb.com/intern/sandcastle/job/18014399494319443 Test Plan: `buck2 test 'fbcode//mode/opt-split-dwarf' fbcode//aps/trainer/plugin/tests:gpu_tracer_test -- --exact 'aps/trainer/plugin/tests:gpu_tracer_test - test_consistent_metric_collecting_regardless_of_memory_usage (aps.trainer.plugin.tests.gpu_tracer_test.GpuTracerTest)'` Differential Revision: D47159397 fbshipit-source-id: ec8cbc4dffe654478473776ba0a38f70621c24a0
🔗 Helpful Links🧪 See artifacts and rendered test results at hud.pytorch.org/pr/104477
Note: Links to docs will display an error until the docs builds have been completed. ✅ No FailuresAs of commit 1928a0b: This comment was automatically generated by Dr. CI and updates every 15 minutes. |
This pull request was exported from Phabricator. Differential Revision: D47159397 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, thanks for the fix!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you for the fix, investigating how it's worked in the past (as torch._inductor
indeed does not have a config
module, it needs to be explicitly imported.
@pytorchbot merge (Initiating merge automatically since Phabricator Diff has merged) |
Merge startedYour change will be merged once all checks pass (ETA 0-4 Hours). Learn more about merging in the wiki. Questions? Feedback? Please reach out to the PyTorch DevX Team |
This fixes the bug in profiler code exposed by #104368 that introduced on the fact that
import torch._dynamo
also importstorch._inductor.config
:Testing
D47159397