Skip to content

Commit

Permalink
feat: Nx.abs/1 supports s64
Browse files Browse the repository at this point in the history
  • Loading branch information
grzuy committed Oct 30, 2023
1 parent f3b7b0e commit c67bece
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions test/candlex_test.exs
Original file line number Diff line number Diff line change
Expand Up @@ -740,6 +740,10 @@ defmodule CandlexTest do
t([-2.0, -1, 0, 1, 2])
|> Nx.abs()
|> assert_equal(t([2, 1, 0, 1, 2]))

t([-2, -1, 0, 1, 2])
|> Nx.abs()
|> assert_equal(t([2, 1, 0, 1, 2]))
end

test "sqrt" do
Expand Down

0 comments on commit c67bece

Please sign in to comment.