-
Notifications
You must be signed in to change notification settings - Fork 25.7k
[MPS] Restrict MSELoss to floating types #139960
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/139960
Note: Links to docs will display an error until the docs builds have been completed. ✅ No FailuresAs of commit 1cad70b with merge base 59cf4bc ( This comment was automatically generated by Dr. CI and updates every 15 minutes. |
Becuase if invoked with long type it crahses deep in MPSGraph framework and to keep parity with CPU Add test that validates that if dtype is not floating, both CPU and MPS implementations will error out Fix function name for `mse_loss_out_mps` as `__func__` for any structured op implementation is `impl` Fixes #139723 ghstack-source-id: 6cd80ca Pull Request resolved: #139960
|
@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). Please use Learn more about merging in the wiki. Questions? Feedback? Please reach out to the PyTorch DevX Team |
Becuase if invoked with long type it crahses deep in MPSGraph framework and to keep parity with CPU Add test that validates that if dtype is not floating, both CPU and MPS implementations will error out Fix function name for `mse_loss_out_mps` as `__func__` for any structured op implementation is `impl` Fixes pytorch#139723 Pull Request resolved: pytorch#139960 Approved by: https://github.com/kimishpatel ghstack dependencies: pytorch#139961, pytorch#139959
Stack from ghstack (oldest at bottom):
Becuase if invoked with long type it crahses deep in MPSGraph framework and to keep parity with CPU
Add test that validates that if dtype is not floating, both CPU and MPS implementations will error out
Fix function name for
mse_loss_out_mpsas__func__for any structured op implementation isimplFixes #139723