-
Notifications
You must be signed in to change notification settings - Fork 24.9k
[ez][dynamo] some code movement #150753
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
[ez][dynamo] some code movement #150753
Conversation
`optimize_assert` already does the lookup for `backend` and `backend_ctx_ctor`. This simply moves the lookups within `optimize` lower so we don't end up calling these functions twice unnecessarily in the `optimize_assert` path. [ghstack-poisoned]
🔗 Helpful Links🧪 See artifacts and rendered test results at hud.pytorch.org/pr/150753
Note: Links to docs will display an error until the docs builds have been completed. ✅ No FailuresAs of commit f19c44e with merge base 47b494e ( This comment was automatically generated by Dr. CI and updates every 15 minutes. |
@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 |
Pull Request resolved: #150754 Approved by: https://github.com/anijain2305, https://github.com/jansel, https://github.com/Skylion007 ghstack dependencies: #150753
Pull Request resolved: #150755 Approved by: https://github.com/anijain2305, https://github.com/Skylion007 ghstack dependencies: #150753, #150754
Pull Request resolved: #150828 Approved by: https://github.com/anijain2305, https://github.com/Skylion007 ghstack dependencies: #150753, #150754, #150755
Pull Request resolved: #151179 Approved by: https://github.com/anijain2305, https://github.com/Skylion007 ghstack dependencies: #150753, #150754, #150755, #150828
`optimize_assert` already does the lookup for `backend` and `backend_ctx_ctor`. This simply moves the lookups within `optimize` lower so we don't end up calling these functions twice unnecessarily in the `optimize_assert` path. Pull Request resolved: pytorch#150753 Approved by: https://github.com/anijain2305, https://github.com/jansel
Pull Request resolved: pytorch#150754 Approved by: https://github.com/anijain2305, https://github.com/jansel, https://github.com/Skylion007 ghstack dependencies: pytorch#150753
Pull Request resolved: pytorch#150755 Approved by: https://github.com/anijain2305, https://github.com/Skylion007 ghstack dependencies: pytorch#150753, pytorch#150754
Pull Request resolved: pytorch#150828 Approved by: https://github.com/anijain2305, https://github.com/Skylion007 ghstack dependencies: pytorch#150753, pytorch#150754, pytorch#150755
Pull Request resolved: pytorch#151179 Approved by: https://github.com/anijain2305, https://github.com/Skylion007 ghstack dependencies: pytorch#150753, pytorch#150754, pytorch#150755, pytorch#150828
`optimize_assert` already does the lookup for `backend` and `backend_ctx_ctor`. This simply moves the lookups within `optimize` lower so we don't end up calling these functions twice unnecessarily in the `optimize_assert` path. Pull Request resolved: pytorch#150753 Approved by: https://github.com/anijain2305, https://github.com/jansel
Pull Request resolved: pytorch#150754 Approved by: https://github.com/anijain2305, https://github.com/jansel, https://github.com/Skylion007 ghstack dependencies: pytorch#150753
Pull Request resolved: pytorch#150755 Approved by: https://github.com/anijain2305, https://github.com/Skylion007 ghstack dependencies: pytorch#150753, pytorch#150754
Pull Request resolved: pytorch#150828 Approved by: https://github.com/anijain2305, https://github.com/Skylion007 ghstack dependencies: pytorch#150753, pytorch#150754, pytorch#150755
Pull Request resolved: pytorch#151179 Approved by: https://github.com/anijain2305, https://github.com/Skylion007 ghstack dependencies: pytorch#150753, pytorch#150754, pytorch#150755, pytorch#150828
`optimize_assert` already does the lookup for `backend` and `backend_ctx_ctor`. This simply moves the lookups within `optimize` lower so we don't end up calling these functions twice unnecessarily in the `optimize_assert` path. ghstack-source-id: 3415018 Pull Request resolved: pytorch/pytorch#150753
Stack from ghstack (oldest at bottom):
optimize_assert
already does the lookup forbackend
andbackend_ctx_ctor
. This simply moves the lookups withinoptimize
lower so we don't end up calling these functions twice unnecessarily
in the
optimize_assert
path.cc @voznesenskym @penguinwu @EikanWang @jgong5 @Guobing-Chen @XiaobingSuper @zhuhaozhe @blzheng @wenzhe-nrv @jiayisunx @chenyang78 @kadeng @chauhang @amjames