Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support custom prng key #1641

Closed
fehiepsi opened this issue Sep 21, 2023 · 0 comments · Fixed by #1642
Closed

Support custom prng key #1641

fehiepsi opened this issue Sep 21, 2023 · 0 comments · Fixed by #1642
Labels
enhancement New feature or request

Comments

@fehiepsi
Copy link
Member

Currently, numpyro assumes keys are created using jax.random.PRNGKey. This is no longer true with the flag JAX_ENABLE_CUSTOM_RNG=1. So we need to update numpyro to enable the new-style prng key. At some point, we need to change jax.random.PRNGKey (which will be deprecated in the future) to jax.random.key. For more context, see https://github.com/google/jax/blob/main/docs/jep/9263-typed-keys.md

@fehiepsi fehiepsi added the enhancement New feature or request label Sep 21, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant