Skip to content

🐍 Geometric Computer Vision Library for Spatial AI

Add mark.xfail in find_homography_dlt gradcheck (#882)

Edgar Ribaaad92c33e372
diff --git a/test/geometry/test_homography.py b/test/geometry/test_homography.py
index 3cb0f926f..ad2a64d56 100644
--- a/test/geometry/test_homography.py
+++ b/test/geometry/test_homography.py
@@ -64,6 +64,7 @@ class TestFindHomographyDLT:
assert_allclose(
kornia.transform_points(dst_homo_src, points_src), points_dst, rtol=1e-3, atol=1e-4)
+ @pytest.mark.xfail(reason='May raise checkIfNumericalAnalyticAreClose.')
@pytest.mark.grad
def test_gradcheck(self, device, dtype):
points_src = torch.rand(1, 10, 2, device=device, dtype=torch.float64, requires_grad=True)