Skip to content

Commit

Permalink
fix: changing PRNGkey in random_utils to key
Browse files Browse the repository at this point in the history
  • Loading branch information
init-22 committed Nov 15, 2024
1 parent 1005776 commit b5ad298
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion algorithmic_efficiency/random_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -75,5 +75,5 @@ def split(seed: SeedType, num: int = 2) -> SeedType:
def PRNGKey(seed: SeedType) -> SeedType: # pylint: disable=invalid-name
if FLAGS.framework == 'jax':
_check_jax_install()
return jax_rng.PRNGKey(seed)
return jax_rng.key(seed)
return _PRNGKey(seed)

0 comments on commit b5ad298

Please sign in to comment.