pre_dispatch aot_export#115188
pre_dispatch aot_export#115188tugsbayasgalan wants to merge 19 commits intogh/tugsbayasgalan/175/basefrom
Conversation
[ghstack-poisoned]
🔗 Helpful Links🧪 See artifacts and rendered test results at hud.pytorch.org/pr/115188
Note: Links to docs will display an error until the docs builds have been completed. ✅ No FailuresAs of commit d1f1c53 with merge base 36dccc2 ( This comment was automatically generated by Dr. CI and updates every 15 minutes. |
[ghstack-poisoned]
[ghstack-poisoned]
[ghstack-poisoned]
[ghstack-poisoned]
[ghstack-poisoned]
[ghstack-poisoned]
[ghstack-poisoned]
[ghstack-poisoned]
| # functorch transforms, since these transforms always run above __torch_dispatch__. | ||
| # That's why this util lives here, and not in functorch. | ||
| def dispatch_functionalize(func): | ||
| def dispatch_functionalize(func, mode=None): |
There was a problem hiding this comment.
We should ban passing in mode as follow up. Didn't want to mess with auto_functionalize in this PR
There was a problem hiding this comment.
tbh I don't think it would be a much larger PR if you use _detect_functional_mode() everywhere it's needed directly in this PR (and then you don't have to worry about the fact that you're changing the API for dispatch_functionalize only to have to unwind it later)
| return None | ||
|
|
||
|
|
||
| def _detect_functional_mode(): |
There was a problem hiding this comment.
nice - we could probably give proxy mode similar treatment
|
|
||
| flattened_wrapped_args = pytree.arg_tree_leaves(*func_args) | ||
| flattened_wrapped_kwargs = pytree.arg_tree_leaves(**func_kwargs) | ||
| mode = mode or FunctionalTensorMode() |
There was a problem hiding this comment.
shouldn't this be using _detect_functional_mode()?
Pull Request resolved: #115210 Approved by: https://github.com/zhxchen17 ghstack dependencies: #115188
|
@pytorchbot revert -m "sadly, it is required to revert this commit in order to revert #115454" -c ghfirst |
|
@pytorchbot successfully started a revert job. Check the current status here. |
|
@tugsbayasgalan your PR has been successfully reverted. |
This reverts commit a267d67. Reverted #115188 on behalf of https://github.com/jeanschmidt due to sadly, it is required to revert this commit in order to revert #115454 ([comment](#115188 (comment)))
Pull Request resolved: pytorch#115188 Approved by: https://github.com/bdhirsh
|
@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 |
Merge failedReason: Command Details for Dev Infra teamRaised by workflow job |
cc voznesenskym penguinwu EikanWang jgong5 Guobing-Chen XiaobingSuper zhuhaozhe blzheng wenzhe-nrv jiayisunx chenyang78 aakhundov kadeng [ghstack-poisoned]
cc voznesenskym penguinwu EikanWang jgong5 Guobing-Chen XiaobingSuper zhuhaozhe blzheng wenzhe-nrv jiayisunx chenyang78 aakhundov kadeng [ghstack-poisoned]
|
@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: #115210 Approved by: https://github.com/zhxchen17 ghstack dependencies: #115188
) Pull Request resolved: #116383 Approved by: https://github.com/bdhirsh ghstack dependencies: #115188, #115210
Stack from ghstack (oldest at bottom):
cc @voznesenskym @penguinwu @EikanWang @jgong5 @Guobing-Chen @XiaobingSuper @zhuhaozhe @blzheng @wenzhe-nrv @jiayisunx @chenyang78 @aakhundov @kadeng