-
Notifications
You must be signed in to change notification settings - Fork 12
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
JAX 0.4.24 removed `random.KeyArray`. According to the deprecation warning, it can be replaced with `jax.Array`: ``` DeprecationWarning: jax.random.KeyArray is deprecated. Use jax.Array for annotations, and jax.dtypes.issubdtype(arr.dtype, jax.dtypes.prng_key) for runtime detection of typed prng keys (i.e. keys created with jax.random.key). ```
- Loading branch information
1 parent
a5b7c1e
commit 6cf394e
Showing
5 changed files
with
13 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,10 @@ | ||
from typing import Union | ||
|
||
import jax | ||
import jax.numpy as jnp | ||
import numpy as np | ||
import scipy.sparse as sp | ||
from jax import Array | ||
|
||
NdArray = Union[np.ndarray, jnp.ndarray] | ||
IntOrKey = Union[int, jax.random.KeyArray] | ||
IntOrKey = Union[int, Array] | ||
ArrayLike = Union[np.ndarray, sp.spmatrix, jnp.ndarray] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters