Skip to content

Commit 83419bb

Browse files
committed
Revert accidental change to optional take
1 parent ef1c08d commit 83419bb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

nx/lib/nx.ex

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14132,7 +14132,7 @@ defmodule Nx do
1413214132
indices = devectorize(indices, keep_names: false)
1413314133
out = %{tensor | shape: inner_shape, names: inner_names}
1413414134

14135-
Nx.Shared.optional(:take, [tensor, indices, axis], out, fn tensor, indices, axis ->
14135+
Nx.Shared.optional(:take, [tensor, indices, [axis: axis]], out, fn tensor, indices, _opts ->
1413614136
gather_indices = new_axis(indices, rank(indices))
1413714137
{indices_axes, tensor_axes} = Enum.split(axes(inner_shape), rank(indices))
1413814138
{leading, trailing} = Enum.split(tensor_axes, axis)

0 commit comments

Comments
 (0)