Skip to content

Commit

Permalink
debuging tests 4
Browse files Browse the repository at this point in the history
  • Loading branch information
Mateusz Kopcinski authored and Mateusz Kopcinski committed Aug 20, 2024
1 parent dfd4326 commit 3839a3f
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions test/ex_vision/style_transfer/style_transfer_test.exs
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,7 @@ for {module, opts} <- TestConfiguration.configuration() do
diff_sum =
expected_result
|> Nx.equal(result)
|> Nx.as_type(:u64)
|> Nx.reduce(0, fn x, y -> Nx.add(x, y) end)
# |> Nx.reduce_max()
|> Nx.to_number()
Expand All @@ -63,6 +64,7 @@ for {module, opts} <- TestConfiguration.configuration() do
expected_result
|> Nx.subtract(result)
|> Nx.abs()
|> Nx.as_type(:u64)
|> Nx.reduce(0, fn x, y -> Nx.add(x, y) end)
# |> Nx.reduce_max()
|> Nx.to_number()
Expand Down

0 comments on commit 3839a3f

Please sign in to comment.