-
Notifications
You must be signed in to change notification settings - Fork 25.7k
[MPS] Enable forward test for renorm #106666
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/106666
Note: Links to docs will display an error until the docs builds have been completed. ✅ No FailuresAs of commit 2f7c603 with merge base bd34f85 ( This comment was automatically generated by Dr. CI and updates every 15 minutes. |
|
Hi, can you fix the tests, please? |
|
Hey, I am not sure what is causing the test failure. Can you please guide me on how to fix it? |
@qqaatw , thanks for the fix. |
|
@arunppsg, please fix the lint, thanks. Here are a couple of things:
|
|
Thank you @qqaatw for help - sure, I will keep the pointers in mind during future contribution. |
|
@pytorchbot merge |
Merge failedReason: Approval needed from one of the following: |
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.
Random rant about our code being too cuda specific, shouldn't block this PR!
| at::toAccumulateType(self.scalar_type(), /*is_cuda=*/self.is_cuda()); | ||
| auto acc_type = self.is_mps() | ||
| ? self.scalar_type() | ||
| : at::toAccumulateType(self.scalar_type(), /*is_cuda=*/self.is_cuda()); |
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.
I wonder if we should move toAccumulateType() to have a is_gpu (or device) flag to be able to treat the accumulation type the same way on cuda and mps.
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.
yeah I thought about this but was not sure whether the cuda accumulation types are applicable to mps or not. So didn't change this part.
Will investigate it.
|
@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 |
Trying to address this comment: #106666 (comment) cc albanD kulinseth [ghstack-poisoned]
Trying to address this comment: #106666 (comment) cc albanD kulinseth [ghstack-poisoned]
Trying to address this comment: #106666 (comment) cc albanD kulinseth [ghstack-poisoned]
Trying to address this comment: #106666 (comment) cc albanD kulinseth [ghstack-poisoned]
Trying to address this comment: #106666 (comment) cc albanD kulinseth [ghstack-poisoned]
Trying to address this comment: #106666 (comment) cc albanD kulinseth [ghstack-poisoned]
Trying to address this comment: #106666 (comment) cc albanD kulinseth [ghstack-poisoned]
Trying to address this comment: #106666 (comment) cc albanD kulinseth [ghstack-poisoned]
Trying to address this comment: #106666 (comment) cc albanD kulinseth [ghstack-poisoned]
Trying to address this comment: #106666 (comment) cc albanD kulinseth [ghstack-poisoned]
Trying to address this comment: #106666 (comment) cc albanD kulinseth [ghstack-poisoned]
Trying to address this comment: #106666 (comment) Pull Request resolved: #108248 Approved by: https://github.com/kulinseth, https://github.com/albanD
Enabled forward test for renorm
cc @qqaatw