-
Notifications
You must be signed in to change notification settings - Fork 2.6k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[jax2tf] Refactored the handling of float0.
JAX and TF have different ways of dealing with tangents and co-tangents for exact types. JAX uses float0 values. TF sometimes uses None, sometines integer (or boolean) zeros. In the JAX VJP function we convert the None's to zeros. On exit from the VJP function we convert the float0 to zeros.
- Loading branch information
Showing
7 changed files
with
343 additions
and
247 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
Oops, something went wrong.