-
Notifications
You must be signed in to change notification settings - Fork 25.7k
[MPS] Add complex support for fill
#111885
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
[ghstack-poisoned]
🔗 Helpful Links🧪 See artifacts and rendered test results at hud.pytorch.org/pr/111885
Note: Links to docs will display an error until the docs builds have been completed. ✅ No FailuresAs of commit e4fad99 with merge base fb88760 ( This comment was automatically generated by Dr. CI and updates every 15 minutes. |
fill
[ghstack-poisoned]
[ghstack-poisoned]
| fill_scalar_mps_impl(self_as_real_real, Scalar(value_cdouble.real())); | ||
| fill_scalar_mps_impl(self_as_real_imag, Scalar(value_cdouble.imag())); |
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.
| fill_scalar_mps_impl(self_as_real_real, Scalar(value_cdouble.real())); | |
| fill_scalar_mps_impl(self_as_real_imag, Scalar(value_cdouble.imag())); | |
| fill_scalar_mps_impl(self_as_real_real, value_cdouble.real()); | |
| fill_scalar_mps_impl(self_as_real_imag, value_cdouble.imag()); |
Fixes #110537 [ghstack-poisoned]
|
@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 |
When the value of `fill` is of complex, this line `value.toDouble() == 0.0` will error out saying that converting complex to double will cause overflow. So we should firstly handle the complex value and then enter this condition. Pull Request resolved: #111937 Approved by: https://github.com/malfet ghstack dependencies: #111885
Fixes pytorch#110537 Pull Request resolved: pytorch#111885 Approved by: https://github.com/malfet
When the value of `fill` is of complex, this line `value.toDouble() == 0.0` will error out saying that converting complex to double will cause overflow. So we should firstly handle the complex value and then enter this condition. Pull Request resolved: pytorch#111937 Approved by: https://github.com/malfet ghstack dependencies: pytorch#111885
Fixes pytorch#110537 Pull Request resolved: pytorch#111885 Approved by: https://github.com/malfet
When the value of `fill` is of complex, this line `value.toDouble() == 0.0` will error out saying that converting complex to double will cause overflow. So we should firstly handle the complex value and then enter this condition. Pull Request resolved: pytorch#111937 Approved by: https://github.com/malfet ghstack dependencies: pytorch#111885
Stack from ghstack (oldest at bottom):
fill#111885Fixes #110537