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

jnp.ndarray.view: implement all dtypes #14564

Merged
merged 1 commit into from
Feb 17, 2023
Merged

Conversation

jakevdp
Copy link
Collaborator

@jakevdp jakevdp commented Feb 17, 2023

Re-land #14526 with fixes to scalar views.

Re-land google#14526 with fixes to scalar views
@jakevdp jakevdp added the pull ready Ready for copybara import and testing label Feb 17, 2023
@jakevdp jakevdp self-assigned this Feb 17, 2023
lax_internal._check_user_dtype_supported(dtype, "view")
dtype = dtypes.canonicalize_dtype(dtype)

if arr.ndim == 0:
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This condition is what was missing in the previous PR

@copybara-service copybara-service bot merged commit 1248383 into google:main Feb 17, 2023
@jakevdp jakevdp deleted the jnp-view branch February 17, 2023 21:07
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.

None yet

3 participants