Skip to content

Commit

Permalink
update callbacks
Browse files Browse the repository at this point in the history
  • Loading branch information
grzuy committed Jan 16, 2025
1 parent a9118b5 commit 6b9c873
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions lib/candlex/backend.ex
Original file line number Diff line number Diff line change
Expand Up @@ -1041,7 +1041,8 @@ defmodule Candlex.Backend do
:count_leading_zeros,
:imag,
:population_count,
:real
:real,
:to_pointer
] do
@impl true
def unquote(op)(_out, _tensor) do
Expand All @@ -1056,15 +1057,16 @@ defmodule Candlex.Backend do
:lu,
:product,
:qr,
:sort
:sort,
:stack
] do
@impl true
def unquote(op)(_out, _tensor, _) do
raise "unsupported Candlex.Backend.#{unquote(op)} function"
end
end

for op <- [:map, :triangular_solve, :window_min, :window_product] do
for op <- [:triangular_solve, :window_min, :window_product] do
@impl true
def unquote(op)(_out, _tensor, _, _) do
raise "unsupported Candlex.Backend.#{unquote(op)} function"
Expand All @@ -1081,6 +1083,7 @@ defmodule Candlex.Backend do
end

for op <- [
:from_pointer,
:indexed_put,
:reduce
] do
Expand Down

0 comments on commit 6b9c873

Please sign in to comment.