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.take: require array argument (but not indices) to be arraylike #7907

Merged
merged 1 commit into from Sep 14, 2021

Conversation

jakevdp
Copy link
Collaborator

@jakevdp jakevdp commented Sep 13, 2021

Part of #7737

I'm leaving out the indices argument for now, because it's quite common downstream for users to pass lists of indices to jnp.take. I will likely revisit the indices later.

@soraros
Copy link

soraros commented Sep 13, 2021

How about add a warning for indices, so when/if you revisit this, the situation downstream will be better.

@google-ml-butler google-ml-butler bot added kokoro:force-run pull ready Ready for copybara import and testing labels Sep 14, 2021
@copybara-service copybara-service bot merged commit 788ecc5 into google:main Sep 14, 2021
@jakevdp jakevdp deleted the take-arraylike branch September 14, 2021 16:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cla: yes pull ready Ready for copybara import and testing
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants