KEMBAR78
[Decomposition] baddbmm by salilsdesai · Pull Request #108534 · pytorch/pytorch · GitHub
Skip to content

Conversation

@salilsdesai
Copy link
Contributor

@salilsdesai salilsdesai commented Sep 4, 2023

Summary:
Moving decomposition of baddbmm from _inductor/decomposition.py and include it in core_aten_decompositions

def baddbmm(self, batch1, batch2, beta=1, alpha=1):

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

@pytorch-bot
Copy link

pytorch-bot bot commented Sep 4, 2023

🔗 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 Failures

As of commit 984d55f with merge base caf4376 (image):
💚 Looks good so far! There are no failures yet. 💚

This comment was automatically generated by Dr. CI and updates every 15 minutes.

@facebook-github-bot
Copy link
Contributor

This pull request was exported from Phabricator. Differential Revision: D48871741

@facebook-github-bot
Copy link
Contributor

This pull request was exported from Phabricator. Differential Revision: D48871741

1 similar comment
@facebook-github-bot
Copy link
Contributor

This pull request was exported from Phabricator. Differential Revision: D48871741

salilsdesai added a commit to salilsdesai/pytorch that referenced this pull request Sep 6, 2023
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
@facebook-github-bot
Copy link
Contributor

This pull request was exported from Phabricator. Differential Revision: D48871741

salilsdesai added a commit to salilsdesai/pytorch that referenced this pull request Sep 14, 2023
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
@facebook-github-bot
Copy link
Contributor

This pull request was exported from Phabricator. Differential Revision: D48871741

1 similar comment
@facebook-github-bot
Copy link
Contributor

This pull request was exported from Phabricator. Differential Revision: D48871741

salilsdesai added a commit to salilsdesai/pytorch that referenced this pull request Sep 16, 2023
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
@facebook-github-bot
Copy link
Contributor

This pull request was exported from Phabricator. Differential Revision: D48871741

@facebook-github-bot
Copy link
Contributor

This pull request was exported from Phabricator. Differential Revision: D48871741

@facebook-github-bot
Copy link
Contributor

This pull request was exported from Phabricator. Differential Revision: D48871741

@pytorch-bot pytorch-bot bot added the ciflow/mps Run MPS tests (subset of trunk) label Sep 19, 2023
Copy link
Collaborator

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.

Copy link
Contributor

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?

Copy link
Contributor

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

Copy link
Contributor

@SherlockNoMad SherlockNoMad left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

per comment.

@facebook-github-bot
Copy link
Contributor

This pull request was exported from Phabricator. Differential Revision: D48871741

@facebook-github-bot
Copy link
Contributor

This pull request was exported from Phabricator. Differential Revision: D48871741

@facebook-github-bot
Copy link
Contributor

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

Reviewed By: SS-JIA

Differential Revision: D48871741

fbshipit-source-id: d7e2921112a0b333a389693cd45f33742a3f5b4c
@facebook-github-bot
Copy link
Contributor

This pull request was exported from Phabricator. Differential Revision: D48871741

@facebook-github-bot
Copy link
Contributor

@pytorchbot merge

(Initiating merge automatically since Phabricator Diff has merged)

@pytorch-bot pytorch-bot bot added the ciflow/trunk Trigger trunk jobs on your pull request label Sep 20, 2023
@pytorchmergebot
Copy link
Collaborator

Merge started

Your 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

Advanced Debugging
Check the merge workflow status
here


@out_wrapper()
@pw_cast_for_opmath
@register_decomposition([aten.baddbmm])
Copy link
Collaborator

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ciflow/inductor ciflow/mps Run MPS tests (subset of trunk) ciflow/trunk Trigger trunk jobs on your pull request fb-exported Merged module: cpu CPU specific problem (e.g., perf, algorithm) module: dynamo module: inductor release notes: quantization release notes category

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants