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

alias chex.PRNGKey to jax.Array #307

Closed
wants to merge 0 commits into from
Closed

Conversation

copybara-service[bot]
Copy link

@copybara-service copybara-service bot commented Sep 13, 2023

alias chex.PRNGKey to jax.Array

Starting with jax v0.4.16 and going forward, jax.Array is the correct type annotation for both new-style and old-style PRNG keys in JAX (see JEP 9263 for details)

Note that jax.random.KeyArray has been aliased to Any under TYPE_CHECKING, and so this change will make existing annotations far more strict than they were previously.

@copybara-service copybara-service bot force-pushed the test_565133147 branch 2 times, most recently from 6615676 to 22ef6ff Compare September 19, 2023 15:30
@copybara-service copybara-service bot changed the title chex: alias PRNGKey to jax.Array alias chex.PRNGKey to jax.Array Sep 19, 2023
@copybara-service copybara-service bot force-pushed the test_565133147 branch 3 times, most recently from 1ab3d8b to b7ba49d Compare September 20, 2023 12:22
@copybara-service copybara-service bot closed this Sep 20, 2023
@copybara-service copybara-service bot deleted the test_565133147 branch September 20, 2023 12:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

0 participants