Skip to content

Commit

Permalink
Document take as optional
Browse files Browse the repository at this point in the history
  • Loading branch information
josevalim committed May 12, 2024
1 parent b8f2254 commit dde9152
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion nx/lib/nx/backend.ex
Expand Up @@ -158,6 +158,7 @@ defmodule Nx.Backend do

@callback all_close(out :: tensor, tensor, tensor, keyword) :: tensor
@callback top_k(out :: tensor, tensor, keyword) :: tensor
@callback take(out :: tensor, input :: tensor, indices :: tensor, keyword) :: tensor

@optional_callbacks [
optional: 3,
Expand All @@ -176,7 +177,8 @@ defmodule Nx.Backend do
ifft2: 3,
qr: 3,
cholesky: 2,
eigh: 3
eigh: 3,
take: 4
]

## Inspect implementation
Expand Down

0 comments on commit dde9152

Please sign in to comment.