Skip to content
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

support bfloat16 for assert_allclose_according_to_type #1698

Conversation

WindQAQ
Copy link
Member

@WindQAQ WindQAQ commented Apr 17, 2020

Just port something from TF. TF extends bfloat dtype for numpy. So we can also check it for assert_allclose_according_to_type

https://colab.research.google.com/drive/1BbGWrbM_q02LykGoDTcW9YR93DXTgNug
https://github.com/tensorflow/tensorflow/blob/master/tensorflow/python/framework/test_util.py#L2562

Copy link
Member

@gabrieldemarmiesse gabrieldemarmiesse left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the pull request!

@gabrieldemarmiesse gabrieldemarmiesse merged commit 289f0a1 into tensorflow:master Apr 17, 2020
jrruijli pushed a commit to jrruijli/addons that referenced this pull request Dec 23, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants