Skip to content

Commit

Permalink
bringing back PRNGKey instead of key, till the python311 branch is me…
Browse files Browse the repository at this point in the history
…rged
  • Loading branch information
init-22 committed Nov 16, 2024
1 parent 9819868 commit 4b2e64e
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.key(seed)
return jax_rng.PRNGKey(seed)
return _PRNGKey(seed)

0 comments on commit 4b2e64e

Please sign in to comment.