Skip to content

Commit

Permalink
Replace uses of jnp.array in types with jnp.ndarray.
Browse files Browse the repository at this point in the history
`jnp.array` is a function, not a type:
https://jax.readthedocs.io/en/latest/_autosummary/jax.numpy.array.html
so it never makes sense to use `jnp.array` in a type annotation. Presumably the intent was to write `jnp.ndarray` aka `jax.Array`.

PiperOrigin-RevId: 559441134
Change-Id: Ic7a43f9187af53808711a1d4e02c6c49860663bf
  • Loading branch information
hawkinsp authored and jsspencer committed Nov 24, 2023
1 parent 0e87655 commit 1aa0a2a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ferminet/utils/statistics.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
from jax import numpy as jnp
import numpy as np

T = TypeVar('T', float, np.ndarray, jnp.array)
T = TypeVar('T', float, np.ndarray, jnp.ndarray)


@attr.s(auto_attribs=True)
Expand Down

0 comments on commit 1aa0a2a

Please sign in to comment.