From af709240612919ec7cf5b0e8fac9a6debda990df Mon Sep 17 00:00:00 2001 From: zhang wenhui Date: Tue, 20 Oct 2020 14:27:03 +0800 Subject: [PATCH] fix test_group_norm_op_v2.py, test=develop (#28104) --- python/paddle/fluid/tests/unittests/test_group_norm_op_v2.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/python/paddle/fluid/tests/unittests/test_group_norm_op_v2.py b/python/paddle/fluid/tests/unittests/test_group_norm_op_v2.py index 47761eb5eaf..2ba79cc9e43 100644 --- a/python/paddle/fluid/tests/unittests/test_group_norm_op_v2.py +++ b/python/paddle/fluid/tests/unittests/test_group_norm_op_v2.py @@ -91,7 +91,7 @@ class TestDygraphGroupNormv2(unittest.TestCase): x = np.random.randn(*shape).astype("float32") y1 = compute_v1(x) y2 = compute_v2(x) - self.assertTrue(np.allclose(y1, y2)) + self.assertTrue(np.allclose(y1, y2, atol=1e-5)) if __name__ == '__main__': -- GitLab