-
Notifications
You must be signed in to change notification settings - Fork 26.3k
Adding expm1 to MPS #87147
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
Adding expm1 to MPS #87147
Conversation
🔗 Helpful Links🧪 See artifacts and rendered test results at hud.pytorch.org/pr/87147
Note: Links to docs will display an error until the docs builds have been completed. ❌ 2 Failures, 6 PendingAs of commit e5f9c6f: The following jobs have failed:
This comment was automatically generated by Dr. CI and updates every 15 minutes. |
|
@kulinseth opening the PR, I don't think there's a way for me to run the test since I don't have a Mac with an M1. I have one doubt about the function but the rest should be pretty straightforward :) |
| mps::unary_op(self, output, "expm1_out_mps", | ||
| ^ MPSGraphTensor* (MPSGraph* mpsGraph, MPSGraphTensor* inputTensor) { | ||
| MPSGraphTensor* oneTensor = [mpsGraph constantWithScalar:1.0 | ||
| shape:@[@1] |
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.
Not sure about the shape here
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.
That's correct.
Yes, I have approved the workflow, it will run on M1 Mac as well. |
kulinseth
left a comment
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.
Looks good. Thanks!
| mps::unary_op(self, output, "expm1_out_mps", | ||
| ^ MPSGraphTensor* (MPSGraph* mpsGraph, MPSGraphTensor* inputTensor) { | ||
| MPSGraphTensor* oneTensor = [mpsGraph constantWithScalar:1.0 | ||
| shape:@[@1] |
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.
That's correct.
|
@kulinseth Let me know if there's anything else I should do! |
|
@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 |
Merge failedReason: This PR is too stale; the last push date was more than 3 days ago. Please rebase and try again. You can rebase by leaving the following comment on this PR: Details for Dev Infra teamRaised by workflow job |
|
@pytorchbot rebase |
|
@pytorchbot successfully started a rebase job. Check the current status here |
|
Successfully rebased |
c99d363 to
e5f9c6f
Compare
|
@pytorchbot merge -f "MPS tests are green." |
Merge startedYour change will be merged immediately since you used the force (-f) flag, bypassing any CI checks (ETA: 1-5 minutes). Learn more about merging in the wiki. Questions? Feedback? Please reach out to the PyTorch DevX Team |
|
Hey @arnaudstiegler. |
Fixes pytorch#86744 - Implementing the new `expm1_out_mps` function in `aten/src/ATen/native/mps/operations/UnaryOps.mm` - Adding it to `aten/src/ATen/native/native_functions.yaml` - Adding it to existing `test.test_mps.TestNLLLoss.test_unary_ops` Pull Request resolved: pytorch#87147 Approved by: https://github.com/kulinseth
Fixes pytorch#86744 - Implementing the new `expm1_out_mps` function in `aten/src/ATen/native/mps/operations/UnaryOps.mm` - Adding it to `aten/src/ATen/native/native_functions.yaml` - Adding it to existing `test.test_mps.TestNLLLoss.test_unary_ops` Pull Request resolved: pytorch#87147 Approved by: https://github.com/kulinseth
Fixes #86744
expm1_out_mpsfunction inaten/src/ATen/native/mps/operations/UnaryOps.mmaten/src/ATen/native/native_functions.yamltest.test_mps.TestNLLLoss.test_unary_ops