Skip to content

[OpInfo][BE] Better inputs for addmm #160234

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

Closed
wants to merge 1 commit into from

Conversation

malfet
Copy link
Contributor

@malfet malfet commented Aug 9, 2025

Stack from ghstack (oldest at bottom):

Right now alpha and betha are both less than zero, which makes them useless for all addmm samples for interal types

Right now alpha and betha are both less than zero, which makes them useless for all addmm samples for interal types

[ghstack-poisoned]
@malfet malfet requested a review from mruberry as a code owner August 9, 2025 00:10
@pytorch-bot pytorch-bot bot added the release notes: python_frontend python frontend release notes category label Aug 9, 2025
Copy link

pytorch-bot bot commented Aug 9, 2025

🔗 Helpful Links

🧪 See artifacts and rendered test results at hud.pytorch.org/pr/160234

Note: Links to docs will display an error until the docs builds have been completed.

✅ No Failures

As of commit d293f96 with merge base 86eb65f (image):
💚 Looks good so far! There are no failures yet. 💚

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

malfet added a commit that referenced this pull request Aug 9, 2025
Right now alpha and betha are both less than zero, which makes them useless for all addmm samples for interal types

ghstack-source-id: d3ec519
Pull Request resolved: #160234
@malfet
Copy link
Contributor Author

malfet commented Aug 9, 2025

@pytorchbot merge

@pytorch-bot pytorch-bot bot added the ciflow/trunk Trigger trunk jobs on your pull request label Aug 9, 2025
@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

pytorchmergebot pushed a commit that referenced this pull request Aug 11, 2025
By adding `addmm` kernel, which is a logical continuation  of `mm` one. The only tricking part are how alpha and beta constants are handled, which are passed as `optmath_t`, i.e. that it could be, int64, int32 or float

Unified all MM flavors instantiations thru `INSTANTIATE_MM_OPS` and tested that `addmm` metal kernel works as expected for floating types as well by testing it via
```
 PYTORCH_MPS_PREFER_METAL=1 python test/test_mps.py -v -k test_output_match_addmm_mps_
```

Fixes #154901
Pull Request resolved: #160270
Approved by: https://github.com/Skylion007, https://github.com/dcci
ghstack dependencies: #160228, #160234
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
ciflow/trunk Trigger trunk jobs on your pull request Merged release notes: python_frontend python frontend release notes category
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants