-
Notifications
You must be signed in to change notification settings - Fork 26.3k
Let logspace support bfloat16 on both CPU and CUDA #44675
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
💊 CI failures summary and remediationsAs of commit e28bb6d (more details on the Dr. CI page): ✅ None of the CI failures appear to be your fault 💚
❄️ 1 failure tentatively classified as flakybut reruns have not yet been triggered to confirm:
|
| @unittest.skipIf(not TEST_NUMPY, "NumPy not found") | ||
| @precisionOverride({torch.float: 1e-6, torch.double: 1e-10}) | ||
| @dtypes(torch.float, torch.double) | ||
| @dtypes(*torch.testing.get_all_fp_dtypes(include_half=False, include_bfloat16=False)) |
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 OK but you're not testing bfloat16 in this PR. You may need to add a separate, "easier" tests that compares bfloat16 vs. NumPy's logspace in fp32.
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.
Similar to linspace, I think this test simply test its consistency with NumPy. The modification of the decorator of test_logspace below adds bfloat16 into the test.
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.
OK; that seems reasonable.
mruberry
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.
Cool!
facebook-github-bot
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.
@mruberry has imported this pull request. If you are a Facebook employee, you can view this diff on Phabricator.
Summary: Pull Request resolved: #44675 Reviewed By: ngimel Differential Revision: D23710801 Pulled By: mruberry fbshipit-source-id: 12d8e56f41bb635b500e89aaaf5df86a1795eb72
No description provided.