From 87972af9d616c77142ded30b1177dcbaaf71d1a8 Mon Sep 17 00:00:00 2001 From: Mateusz Kopcinski Date: Tue, 20 Aug 2024 10:59:57 +0200 Subject: [PATCH] fixed unqused variable --- test/support/exvision/test_utils.ex | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/support/exvision/test_utils.ex b/test/support/exvision/test_utils.ex index e690234..cac871a 100644 --- a/test/support/exvision/test_utils.ex +++ b/test/support/exvision/test_utils.ex @@ -44,7 +44,7 @@ defmodule ExVision.TestUtils do defmacro assert_tensors_equal(a, b, delta \\ @default_delta) do quote do - assert Nx.all_close(unquote(a), unquote(b)) |> Nx.reduce_min() |> Nx.to_number() == 1 + assert Nx.all_close(unquote(a), unquote(b), atol: unquote(delta)) |> Nx.reduce_min() |> Nx.to_number() == 1 end end