From 014764d2350b4cfcc679bc007185ff618a0f7113 Mon Sep 17 00:00:00 2001 From: Franck Mamalet <49721198+franckma31@users.noreply.github.com> Date: Wed, 13 Nov 2024 10:38:16 +0100 Subject: [PATCH] updated atol testing value due to numerical imprecision on random initialization --- tests/test_initializers.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/test_initializers.py b/tests/test_initializers.py index f4ee2c6..8a15c9b 100644 --- a/tests/test_initializers.py +++ b/tests/test_initializers.py @@ -94,4 +94,4 @@ def test_initializer(layer_type, layer_params, input_shape, orthogonal_test): if orthogonal_test: np.testing.assert_allclose(sigmas, np.ones_like(sigmas), atol=1e-5) else: - np.testing.assert_allclose(sigmas.max(), 1.0, atol=1e-2) + np.testing.assert_allclose(sigmas.max(), 1.0, atol=2e-2)