Skip to content

What's the different between jax.random.PRNGKey and jax.random.key? #19392

Answered by jakevdp
hilanzy asked this question in Q&A
Discussion options

You must be logged in to vote

In short, jax.random.key produces new-style typed keys, jax.random.PRNGKey produes older-style raw keys, and will eventually be deprecated. For more, see https://jax.readthedocs.io/en/latest/jep/9263-typed-keys.html

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@hilanzy
Comment options

Answer selected by hilanzy
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants