Skip to content

Commit

Permalink
fix: re-instante proper error message for gather rank>1
Browse files Browse the repository at this point in the history
  • Loading branch information
grzuy committed Nov 13, 2023
1 parent 08ef7ca commit d372c16
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/candlex/backend.ex
Original file line number Diff line number Diff line change
Expand Up @@ -386,7 +386,7 @@ defmodule Candlex.Backend do
|> to_nx(out)
end

def gather(%T{} = _out, %T{} = _tensor, %T{} = _indices) do
def gather(%T{} = _out, %T{} = _tensor, %T{} = _indices, _opts) do
raise("unsupported gather for tensor of rank greater than 1")
end

Expand Down

0 comments on commit d372c16

Please sign in to comment.