-
Notifications
You must be signed in to change notification settings - Fork 25.7k
[Decomposition] baddbmm #108534
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
[Decomposition] baddbmm #108534
Conversation
🔗 Helpful Links🧪 See artifacts and rendered test results at hud.pytorch.org/pr/108534
Note: Links to docs will display an error until the docs builds have been completed. ✅ No FailuresAs of commit 984d55f with merge base caf4376 ( This comment was automatically generated by Dr. CI and updates every 15 minutes. |
|
This pull request was exported from Phabricator. Differential Revision: D48871741 |
a736cd3 to
a8fc2d4
Compare
|
This pull request was exported from Phabricator. Differential Revision: D48871741 |
1 similar comment
|
This pull request was exported from Phabricator. Differential Revision: D48871741 |
Summary: Moving decomposition of baddbmm from _inductor/decomposition.py and include it in core_aten_decompositions https://github.com/pytorch/pytorch/blob/ff38c0e2f9cae35378553c38ccf7188007fed938/torch/_inductor/decomposition.py#L203 Test Plan: Phabricator + OSS Tests Differential Revision: D48871741
a8fc2d4 to
cbb0572
Compare
cbb0572 to
b675ca7
Compare
|
This pull request was exported from Phabricator. Differential Revision: D48871741 |
Summary: Moving decomposition of baddbmm from _inductor/decomposition.py and include it in core_aten_decompositions https://github.com/pytorch/pytorch/blob/ff38c0e2f9cae35378553c38ccf7188007fed938/torch/_inductor/decomposition.py#L203 Test Plan: Phabricator + OSS Tests Differential Revision: D48871741
b675ca7 to
07c52ce
Compare
|
This pull request was exported from Phabricator. Differential Revision: D48871741 |
1 similar comment
|
This pull request was exported from Phabricator. Differential Revision: D48871741 |
Summary: bypass-github-pytorch-ci-checks Pull Request resolved: pytorch#108534 Moving decomposition of baddbmm from _inductor/decomposition.py and include it in core_aten_decompositions https://github.com/pytorch/pytorch/blob/ff38c0e2f9cae35378553c38ccf7188007fed938/torch/_inductor/decomposition.py#L203 Test Plan: Phabricator + OSS Tests Differential Revision: D48871741 fbshipit-source-id: 85803ec0e530be5b7a710deb419d05402c48f9bb
07c52ce to
2edb796
Compare
|
This pull request was exported from Phabricator. Differential Revision: D48871741 |
2edb796 to
5c1a99a
Compare
|
This pull request was exported from Phabricator. Differential Revision: D48871741 |
5c1a99a to
f3a0218
Compare
|
This pull request was exported from Phabricator. Differential Revision: D48871741 |
1e619c1 to
cc05ba8
Compare
cc05ba8 to
9babd7c
Compare
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.
You're missing opmath type promotion which wasn't necessary in inductor because it does those promotions to float32 implicitly.
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.
@pw_cast_for_opmath should help, right?
torch/_decomp/decompositions.py
Outdated
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.
add
@out_wrapper()
@pw_cast_for_opmath
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.
per comment.
|
This pull request was exported from Phabricator. Differential Revision: D48871741 |
9babd7c to
ad011fe
Compare
|
This pull request was exported from Phabricator. Differential Revision: D48871741 |
ad011fe to
bff8083
Compare
|
This pull request was exported from Phabricator. Differential Revision: D48871741 |
bff8083 to
8a694e8
Compare
Summary: bypass-github-pytorch-ci-checks Pull Request resolved: pytorch#108534 Moving decomposition of baddbmm from _inductor/decomposition.py and include it in core_aten_decompositions https://github.com/pytorch/pytorch/blob/ff38c0e2f9cae35378553c38ccf7188007fed938/torch/_inductor/decomposition.py#L203 Test Plan: Phabricator + OSS Tests Reviewed By: SS-JIA Differential Revision: D48871741 fbshipit-source-id: d7e2921112a0b333a389693cd45f33742a3f5b4c
|
This pull request was exported from Phabricator. Differential Revision: D48871741 |
8a694e8 to
984d55f
Compare
|
@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 |
|
|
||
| @out_wrapper() | ||
| @pw_cast_for_opmath | ||
| @register_decomposition([aten.baddbmm]) |
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.
You're registering the decomposition before applying the pw_cast_for_opmath wrapper. This PR shouldn't have been merged with the tests still skipped.
Summary:
Moving decomposition of baddbmm from _inductor/decomposition.py and include it in core_aten_decompositions
pytorch/torch/_inductor/decomposition.py
Line 203 in ff38c0e
Test Plan: Phabricator + OSS Tests
Differential Revision: D48871741
cc @jgong5 @mingfeima @XiaobingSuper @sanchitintel @ashokei @jingxu10 @voznesenskym @penguinwu @EikanWang @Guobing-Chen @zhuhaozhe @blzheng @Xia-Weiwen @wenzhe-nrv @jiayisunx @peterbell10 @ipiszy @ngimel @yf225 @chenyang78 @kadeng @muchulee8 @aakhundov