From b0a22e5edb489490c5beb4af9abccb4649060f95 Mon Sep 17 00:00:00 2001 From: David Nabergoj Date: Fri, 20 Oct 2023 11:18:32 +0200 Subject: [PATCH] Increase atol in linear rational spline test --- test/test_spline.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/test_spline.py b/test/test_spline.py index 87c748d..eea1604 100644 --- a/test/test_spline.py +++ b/test/test_spline.py @@ -17,7 +17,7 @@ def test_linear_rational(): xr, log_det_inverse = spline.inverse(z, h) assert x.shape == z.shape == xr.shape assert log_det_forward.shape == log_det_inverse.shape - assert torch.allclose(x, xr) + assert torch.allclose(x, xr, atol=1e-05) assert torch.allclose(log_det_forward, -log_det_inverse, atol=1e-4)