-
Notifications
You must be signed in to change notification settings - Fork 25.7k
[core IR] Add decomps for aten.sum and aten.squeeze variants
#110645
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
Conversation
🔗 Helpful Links🧪 See artifacts and rendered test results at hud.pytorch.org/pr/110645
Note: Links to docs will display an error until the docs builds have been completed. ✅ You can merge normally! (1 Unrelated Failure)As of commit 382eeca with merge base 17348b0 ( UNSTABLE - The following job failed but was likely due to flakiness present on trunk and has been marked as unstable:
This comment was automatically generated by Dr. CI and updates every 15 minutes. |
|
This pull request was exported from Phabricator. Differential Revision: D49965952 |
b9e8e2a to
5ee7630
Compare
|
This pull request was exported from Phabricator. Differential Revision: D49965952 |
5ee7630 to
3db9dcd
Compare
|
This pull request was exported from Phabricator. Differential Revision: D49965952 |
3db9dcd to
526c734
Compare
|
This pull request was exported from Phabricator. Differential Revision: D49965952 |
…orch#110645) Summary: ## Context Both `aten.sum` and `aten.squeeze` have a "most generic" variant in the form of `aten.sum.dim_IntList` and `aten.squeeze.dims` respectively. Add decompositions for other non generic variants of these operators to express them using the most generic variant. Note that to register these decomps, the reference implementation under `_refs` had to be removed as registered decompositions. Test Plan: Github CI + Meta Internal CI Differential Revision: D49965952
526c734 to
6b62792
Compare
|
This pull request was exported from Phabricator. Differential Revision: D49965952 |
6b62792 to
4cb1610
Compare
4cb1610 to
8dcc266
Compare
|
This pull request was exported from Phabricator. Differential Revision: D49965952 |
1 similar comment
|
This pull request was exported from Phabricator. Differential Revision: D49965952 |
9bde7e1 to
d02c8b3
Compare
|
This pull request was exported from Phabricator. Differential Revision: D49965952 |
1 similar comment
|
This pull request was exported from Phabricator. Differential Revision: D49965952 |
|
Updated to address comments. |
|
This pull request was exported from Phabricator. Differential Revision: D49965952 |
d02c8b3 to
23779e8
Compare
…orch#110645) Summary: ## Context Both `aten.sum` and `aten.squeeze` have a "most generic" variant in the form of `aten.sum.dim_IntList` and `aten.squeeze.dims` respectively. Add decompositions for other non generic variants of these operators to express them using the most generic variant. Note that to register these decomps, the reference implementation under `_refs` had to be removed as registered decompositions. Test Plan: Github CI + Meta Internal CI Differential Revision: D49965952
23779e8 to
39b0345
Compare
|
This pull request was exported from Phabricator. Differential Revision: D49965952 |
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.
These two were already being decomposed by the ref. It's a bit annoying to have to factor them out into their own decompositions. I think a proper fix going forward would be to fix the issues with prims: Either make the usable (removing the broadcasting behaviour and dispatching them to the core ATen ops) or remove them completely. Otherwise, we are going to end up with plenty of these tiny decompositions, rather than the tighter all-in-one that we have implemented in refs.
cc @ezyang
…orch#110645) Summary: ## Context Both `aten.sum` and `aten.squeeze` have a "most generic" variant in the form of `aten.sum.dim_IntList` and `aten.squeeze.dims` respectively. Add decompositions for other non generic variants of these operators to express them using the most generic variant. Note that to register these decomps, the reference implementation under `_refs` had to be removed as registered decompositions. Test Plan: Github CI + Meta Internal CI Reviewed By: manuelcandales Differential Revision: D49965952
39b0345 to
7583f15
Compare
|
This pull request was exported from Phabricator. Differential Revision: D49965952 |
7583f15 to
382eeca
Compare
|
This pull request was exported from Phabricator. Differential Revision: D49965952 |
|
@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 |
Summary:
Context
Both
aten.sumandaten.squeezehave a "most generic" variant in the form ofaten.sum.dim_IntListandaten.squeeze.dimsrespectively. Add decompositions for other non generic variants of these operators to express them using the most generic variant.Note that to register these decomps, the reference implementation under
_refshad to be removed as registered decompositions. cc: @lezcano @peterbell10Test Plan: Github CI + Meta Internal CI
Differential Revision: D49965952
cc @voznesenskym @penguinwu @EikanWang @jgong5 @Guobing-Chen @XiaobingSuper @zhuhaozhe @blzheng @Xia-Weiwen @wenzhe-nrv @jiayisunx @peterbell10 @ipiszy @yf225 @chenyang78 @kadeng @muchulee8 @aakhundov @ColinPeppler