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
[core IR] Add a core decomposition for floor_divide #110046
Conversation
[ghstack-poisoned]
🔗 Helpful Links🧪 See artifacts and rendered test results at hud.pytorch.org/pr/110046
Note: Links to docs will display an error until the docs builds have been completed. ⏳ No Failures, 1 PendingAs of commit 75d4547 with merge base 52e1478 (): This comment was automatically generated by Dr. CI and updates every 15 minutes. |
ghstack-source-id: 24e3f183889d3a2d988bd05cff681d45d191485e Pull Request resolved: #110046
## Context Introduce a core decomposition for `aten.floor_divide` into other `aten` ops, and add it to the core ATen decomposition table. [ghstack-poisoned]
ghstack-source-id: 6accf4059304c69be09523b8ff0ee801da48475c Pull Request resolved: #110046
I don't quite remember what was the issue here really. I think that back then, our lowering for If this was indeed the reason (let's see if Peter remembers) then I guess we can move it to core, yep. |
## Context Introduce a core decomposition for `aten.floor_divide` into other `aten` ops, and add it to the core ATen decomposition table. This replaces the decomposition of `floor_divide` that was used by Inductor. I noticed there was a note on that decomposition ``` # TorchInductor-only decomposition. It should not be taken to core. # See pytorch/torchdynamo#1120 ``` but couldn't discern the reason why this is the case. cc: lezcano cc voznesenskym penguinwu EikanWang jgong5 Guobing-Chen XiaobingSuper zhuhaozhe blzheng Xia-Weiwen wenzhe-nrv jiayisunx peterbell10 ipiszy yf225 chenyang78 kadeng muchulee8 aakhundov [ghstack-poisoned]
ghstack-source-id: 204fa68c34379511fedb36e74d24cbcff3fcca77 Pull Request resolved: #110046
@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 |
## Context Add the decomposition for `aten.glu` as a decomposition in the core ATen decomposition table. Don't use it in the Inductor decomposition table since Inductor has a lowering for it. Pull Request resolved: #110043 Approved by: https://github.com/peterbell10, https://github.com/lezcano ghstack dependencies: #110046
## Context Introduce a core decomposition for `aten.floor_divide` into other `aten` ops, and add it to the core ATen decomposition table. This replaces the decomposition of `floor_divide` that was used by Inductor. I noticed there was a note on that decomposition ``` # TorchInductor-only decomposition. It should not be taken to core. # See pytorch/torchdynamo#1120 ``` but couldn't discern the reason why this is the case. cc: @lezcano Pull Request resolved: pytorch#110046 Approved by: https://github.com/peterbell10
## Context Add the decomposition for `aten.glu` as a decomposition in the core ATen decomposition table. Don't use it in the Inductor decomposition table since Inductor has a lowering for it. Pull Request resolved: pytorch#110043 Approved by: https://github.com/peterbell10, https://github.com/lezcano ghstack dependencies: pytorch#110046
ghstack-source-id: 37b9e14da1f577f3589e530d687af135c9dc9444 Pull Request resolved: pytorch/pytorch#110046
Stack from ghstack (oldest at bottom):
Context
Introduce a core decomposition for
aten.floor_divide
into otheraten
ops, and add it to the core ATen decomposition table.This replaces the decomposition of
floor_divide
that was used by Inductor. I noticed there was a note on that decompositionbut couldn't discern the reason why this is the case. cc: @lezcano
cc @voznesenskym @penguinwu @EikanWang @jgong5 @Guobing-Chen @XiaobingSuper @zhuhaozhe @blzheng @Xia-Weiwen @wenzhe-nrv @jiayisunx @peterbell10 @ipiszy @yf225 @chenyang78 @kadeng @muchulee8 @aakhundov