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

Deprecate non-array inputs to jnp.array_equal & jnp.array_equiv #18708

Merged
merged 1 commit into from
Nov 29, 2023

Conversation

jakevdp
Copy link
Collaborator

@jakevdp jakevdp commented Nov 28, 2023

Part of #7737. Fixes #14901 and #17621

I opted not to go the check_arraylike route, because there are many downstream uses of jnp.arrays_equal on tuple/list inputs. Instead, we just deprecate the case where inputs cannot be coerced to an array, which is the most confusing case.

@jakevdp jakevdp added the pull ready Ready for copybara import and testing label Nov 29, 2023
@copybara-service copybara-service bot merged commit 0fce77a into jax-ml:main Nov 29, 2023
14 checks passed
@jakevdp jakevdp deleted the array-equal-dep branch November 29, 2023 17:02
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.

Should array_equal and array_equiv enforce array like for their arguments?
1 participant