Skip to content

Commit

Permalink
jax.random: deprecate passing of batched keys to APIs
Browse files Browse the repository at this point in the history
  • Loading branch information
jakevdp committed Jan 17, 2024
1 parent 3e80670 commit 03ce8ca
Show file tree
Hide file tree
Showing 6 changed files with 96 additions and 52 deletions.
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,9 @@ Remember to align the itemized text with the first line of an item within a list
* Support for the mhlo MLIR dialect has been deprecated. JAX no longer uses
the mhlo dialect, in favor of stablehlo. APIs that refer to "mhlo" will be
removed in the future. Use the "stablehlo" dialect instead.
* {mod}`jax.random`: passing batched keys directly to random number generation functions,
such as {func}`~jax.random.bits`, {func}`~jax.random.gamma`, and others, is deprecated
and will emit a `FutureWarning`. Use `jax.vmap` for explicit batching.

## jaxlib 0.4.24

Expand Down
Loading

0 comments on commit 03ce8ca

Please sign in to comment.