-
Notifications
You must be signed in to change notification settings - Fork 748
Support Half/BFloat16 in cdist #7800
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
|
Stack from ghstack (oldest at bottom): |
🔗 Helpful Links🧪 See artifacts and rendered test results at hud.pytorch.org/pr/pytorch/executorch/7800
Note: Links to docs will display an error until the docs builds have been completed. ❌ 1 New FailureAs of commit f538e6c with merge base 948fba6 ( NEW FAILURE - The following job has failed:
This comment was automatically generated by Dr. CI and updates every 15 minutes. |
| out, | ||
| l3, | ||
| 1e-2, | ||
| executorch::runtime::testing::internal::kDefaultBFloat16Atol); |
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.
Why do you need to pass the default atol 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.
macros don't have default arguments
| return internal::kDefaultHalfAtol; | ||
| } | ||
| if (t == ScalarType::BFloat16) { | ||
| return internal::kDefaultBFloat16Atol; |
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.
This is great, I wasn't aware of these defaults. Do these play well with the EXPECT_TENSOR_CLOSE_WITH_TOL macro?
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.
yes, though atol matters a lot less to me than rtol in all these diffs
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.
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.
replied; 1e-2 is not needed for all ops
Partial fix for pytorch#7748.
Partial fix for #7748.