From 42507d33c6f69423cc40bf5d0068326041d7d49e Mon Sep 17 00:00:00 2001 From: minqiyang Date: Thu, 28 Mar 2019 13:23:40 +0800 Subject: [PATCH] Change atol to default value --- .../paddle/fluid/tests/unittests/test_imperative_optimizer.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/python/paddle/fluid/tests/unittests/test_imperative_optimizer.py b/python/paddle/fluid/tests/unittests/test_imperative_optimizer.py index f509ff4a23..ef34b998d1 100644 --- a/python/paddle/fluid/tests/unittests/test_imperative_optimizer.py +++ b/python/paddle/fluid/tests/unittests/test_imperative_optimizer.py @@ -146,7 +146,7 @@ class TestImperativeOptimizerBase(unittest.TestCase): self.assertTrue(np.allclose(static_out, dy_out)) for key, value in six.iteritems(static_param_value): - self.assertTrue(np.allclose(value, dy_param_value[key], atol=1e-5)) + self.assertTrue(np.allclose(value, dy_param_value[key])) class TestImperativeOptimizerPiecewiseDecay(TestImperativeOptimizerBase): -- GitLab