Skip to content

Commit

Permalink
Fix indexed_* check
Browse files Browse the repository at this point in the history
  • Loading branch information
josevalim committed Nov 6, 2023
1 parent a263d4f commit 6d6e03d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion nx/lib/nx/shape.ex
Original file line number Diff line number Diff line change
Expand Up @@ -952,7 +952,7 @@ defmodule Nx.Shape do
"expected the leading axis of indices (#{inspect(indices_shape)}) " <>
"and leading axis of updates (#{inspect(updates_shape)}) to match"

{_, n} when tuple_size(updates_shape) == n + r + 1 ->
{_, n} when u - 1 + n != r ->
raise ArgumentError,
"expected the rank of updates (#{u}) to be equal to trailing axis of indices (#{inspect(indices_shape)}) " <>
"plus the rank of the input (#{r}) plus one"
Expand Down

0 comments on commit 6d6e03d

Please sign in to comment.