forked from jax-ml/jax
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add bfloat16 support to JAX. (jax-ml#1720)
bfloat16 support is still immature, but this PR adds some initial support. Fixes jax-ml#76, at least enough that we can declare it fixed and open specific issues for specific bfloat16 problems. The main awkwardness that this change deals with is that classic NumPy doesn't understand bfloat16 promotion rules, so we must: implement our own type promotion operators that understand bfloat16 types wrap a number of the reference implementations in tests to temporarily cast to float32 for computation.
- Loading branch information
Showing
8 changed files
with
418 additions
and
251 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.