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

jax.numpy ndim/shape/size: deprecate non-array input #26641

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

jakevdp
Copy link
Collaborator

@jakevdp jakevdp commented Feb 20, 2025

Non-arraylike inputs already fail in many cases under JIT: this moves toward making the API stricter so that eager and JIT-compiled execution have the same behavior.

Fixes #12083

@jakevdp jakevdp self-assigned this Feb 20, 2025
@jakevdp jakevdp added the pull ready Ready for copybara import and testing label Feb 20, 2025
copybara-service bot pushed a commit to google/praxis that referenced this pull request Feb 21, 2025
This is deprecated starting in jax-ml/jax#26641

PiperOrigin-RevId: 729495663
copybara-service bot pushed a commit to google/jaxonnxruntime that referenced this pull request Feb 24, 2025
Passing lists or sequences to these functions is deprecated starting in jax-ml/jax#26641

PiperOrigin-RevId: 730489188
copybara-service bot pushed a commit to google/jaxonnxruntime that referenced this pull request Feb 24, 2025
Passing lists or sequences to these functions is deprecated starting in jax-ml/jax#26641

PiperOrigin-RevId: 730489188
copybara-service bot pushed a commit to google-deepmind/distrax that referenced this pull request Feb 24, 2025
Passing lists or sequences to these functions is deprecated starting in jax-ml/jax#26641

PiperOrigin-RevId: 730489201
copybara-service bot pushed a commit to google-deepmind/distrax that referenced this pull request Feb 24, 2025
Passing lists or sequences to these functions is deprecated starting in jax-ml/jax#26641

PiperOrigin-RevId: 730489201
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
pull ready Ready for copybara import and testing
Projects
None yet
Development

Successfully merging this pull request may close these issues.

jax.numpy.ndim works on non-arrays, but not during tracing
1 participant