We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Hi, many thanks for nice package. I have a question.
Suppose that python-numpy is installed, but not python-jax. See https://aur.archlinux.org/packages/python-jaxtyping#comment-908221
python-numpy
python-jax
import numpy as np from jaxtyping import Array, Float
I see that
Array
/usr/lib/python3.13/site-packages/jax/_src/basearray.py
Float
Annotated
/usr/lib/python3.13/typing.py
Therefore, is not possible use Array for typing numpy arrays. Is this intended behavior?
The text was updated successfully, but these errors were encountered:
Yes, it is the intended behaviour, documented here. Instead of the JAX-specific Array, you can also use np.ndarray, torch.Tensor and tf.Tensor.
np.ndarray
torch.Tensor
tf.Tensor
Sorry, something went wrong.
Many thanks 😄
No branches or pull requests
Hi, many thanks for nice package. I have a question.
Suppose that
python-numpy
is installed, but notpython-jax
. See https://aur.archlinux.org/packages/python-jaxtyping#comment-908221I see that
Array
point toArray
class in/usr/lib/python3.13/site-packages/jax/_src/basearray.py
.Float
point toAnnotated
function in/usr/lib/python3.13/typing.py
.Therefore, is not possible use
Array
for typing numpy arrays. Is this intended behavior?The text was updated successfully, but these errors were encountered: