-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Switch TFP to use typed JAX PRNG keys.
Sanitize the old-style keys to the new ones. The sanitization is the main benefit here, since otherwise you'd get *very* inscrutable errors if you passed new-style keys to TFP. The new style keys are recommended (https://jax.readthedocs.io/en/latest/jep/9263-typed-keys.html) so it makes sense to switch to them. I also reverted the exception logic in csiszar_divergence, as this change revealed a counter example that made no reference to the seed argument. PiperOrigin-RevId: 606320203
- Loading branch information
1 parent
23a292a
commit b597b1c
Showing
5 changed files
with
96 additions
and
9 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
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