[dynamo] Refactor into torch/_inductor/runtime/compile_tasks.py#124681
[dynamo] Refactor into torch/_inductor/runtime/compile_tasks.py#124681jansel wants to merge 4 commits intogh/jansel/329/basefrom
Conversation
🔗 Helpful Links🧪 See artifacts and rendered test results at hud.pytorch.org/pr/124681
Note: Links to docs will display an error until the docs builds have been completed. ✅ No FailuresAs of commit 701be7d with merge base 26f8d96 ( This comment was automatically generated by Dr. CI and updates every 15 minutes. |
| if codecache: | ||
| return codecache.PyCodeCache.load_by_key_path(key, path) | ||
| else: | ||
| return _reload_python_module(key, path) |
There was a problem hiding this comment.
Nit: AFAICT, this PR is mostly just moving methods around. This is the one place I don't quite grok. What's happening that requires the sys.modules.get? So a comment about what's going on here would be nice.
There was a problem hiding this comment.
It is so that in the next PR when we do:
sys.modules["torch"] = MockTorch()
we don't try to go via codecache.
|
@pytorchbot merge |
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 |
|
The merge job was canceled. If you believe this is a mistake, then you can re trigger it through pytorch-bot. |
|
@pytorchbot merge |
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 |
|
@pytorchbot revert -m "breaking internal tests, check D56522594 -c nosignal |
|
❌ 🤖 pytorchbot command failed: |
|
@pytorchbot revert -m "breaking internal tests, check D56522594" -c nosignal |
|
@pytorchbot successfully started a revert job. Check the current status here. |
|
@jansel your PR has been successfully reverted. |
…py (#124681)" This reverts commit 0792cea. Reverted #124681 on behalf of https://github.com/jeanschmidt due to breaking internal tests, check D56522594 ([comment](#124681 (comment)))
…py (pytorch#124681)" This reverts commit 0792cea. Reverted pytorch#124681 on behalf of https://github.com/jeanschmidt due to breaking internal tests, check D56522594 ([comment](pytorch#124681 (comment)))
…ks.py" cc voznesenskym penguinwu EikanWang jgong5 Guobing-Chen XiaobingSuper zhuhaozhe blzheng wenzhe-nrv jiayisunx peterbell10 ipiszy yf225 chenyang78 kadeng muchulee8 ColinPeppler amjames desertfire chauhang [ghstack-poisoned]
|
@masnesral has imported this pull request. If you are a Meta employee, you can view this diff on Phabricator. |
…or/runtime/compile_tasks.py" cc voznesenskym penguinwu EikanWang jgong5 Guobing-Chen XiaobingSuper zhuhaozhe blzheng wenzhe-nrv jiayisunx peterbell10 ipiszy yf225 chenyang78 kadeng muchulee8 ColinPeppler amjames desertfire chauhang Differential Revision: [D56723769](https://our.internmc.facebook.com/intern/diff/D56723769) [ghstack-poisoned]
|
@masnesral has imported this pull request. If you are a Meta employee, you can view this diff on Phabricator. |
|
@pytorchbot merge |
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 |
…rch#124681) Pull Request resolved: pytorch#124681 Approved by: https://github.com/masnesral ghstack dependencies: pytorch#124592
…py (pytorch#124681)" This reverts commit 0792cea. Reverted pytorch#124681 on behalf of https://github.com/jeanschmidt due to breaking internal tests, check D56522594 ([comment](pytorch#124681 (comment)))
) Differential Revision: [D56723769](https://our.internmc.facebook.com/intern/diff/D56723769) Co-authored-by: Sam Larsen <slarsen@meta.com> Pull Request resolved: #124681 Approved by: https://github.com/masnesral ghstack dependencies: #124592
Stack from ghstack (oldest at bottom):
cc @voznesenskym @penguinwu @EikanWang @jgong5 @Guobing-Chen @XiaobingSuper @zhuhaozhe @blzheng @wenzhe-nrv @jiayisunx @peterbell10 @ipiszy @yf225 @chenyang78 @kadeng @muchulee8 @ColinPeppler @amjames @desertfire @chauhang
Differential Revision: D56723769