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

Nx.take: support indices of rank > 1 #42

Closed
grzuy opened this issue Nov 22, 2023 · 1 comment · Fixed by #57
Closed

Nx.take: support indices of rank > 1 #42

grzuy opened this issue Nov 22, 2023 · 1 comment · Fixed by #57

Comments

@grzuy
Copy link
Collaborator

grzuy commented Nov 22, 2023

candlex/test/candlex_test.exs

Lines 2203 to 2218 in 9e133fe

# t([[1, 2], [11, 12]])
# |> Nx.take(t([[0, 0], [1, 1], [0, 0]]), axis: 1)
# |> assert_equal(t(
# [
# [
# [1, 1],
# [2, 2],
# [1, 1]
# ],
# [
# [11, 11],
# [12, 12],
# [11, 11]
# ]
# ]
# ))

@grzuy
Copy link
Collaborator Author

grzuy commented Nov 22, 2023

Consider elixir-nx/nx#1366.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant