Skip to content

🐍 Geometric Computer Vision Library for Spatial AI

Fix `KORNIA_CHECK_SAME_DEVICE` cuda test (#2479)

João Gustavo A. Amorim32b2fa7ccbc2
diff --git a/test/core/test_check.py b/test/core/test_check.py
index e96229e4a..0a7c9b51b 100644
--- a/test/core/test_check.py
+++ b/test/core/test_check.py
@@ -135,7 +135,7 @@ class TestCheckSameDevice:
@pytest.mark.skipif(not torch.cuda.is_available(), reason="Skip if no GPU.")
def test_invalid_raises_false(self):
assert (
- KORNIA_CHECK_SAME_DEVICE(torch.rand(1, device="cpu"), torch.rand(1, device="cuda", raises=False)) is False
+ KORNIA_CHECK_SAME_DEVICE(torch.rand(1, device="cpu"), torch.rand(1, device="cuda"), raises=False) is False
)