From a4f5cc03a8d7b2a9d5f8c01624e4c8a9755e5457 Mon Sep 17 00:00:00 2001 From: sneaxiy Date: Tue, 16 Oct 2018 02:41:18 +0000 Subject: [PATCH] test=release/1.0.0 --- hehe.md | 1 - python/paddle/fluid/tests/unittests/test_rmsprop_op.py | 9 ++++++--- 2 files changed, 6 insertions(+), 4 deletions(-) delete mode 100644 hehe.md diff --git a/hehe.md b/hehe.md deleted file mode 100644 index 8de51b2efa..0000000000 --- a/hehe.md +++ /dev/null @@ -1 +0,0 @@ -fsdfgdfsdsafsdg diff --git a/python/paddle/fluid/tests/unittests/test_rmsprop_op.py b/python/paddle/fluid/tests/unittests/test_rmsprop_op.py index 335d595f3d..eb12bc7417 100644 --- a/python/paddle/fluid/tests/unittests/test_rmsprop_op.py +++ b/python/paddle/fluid/tests/unittests/test_rmsprop_op.py @@ -88,7 +88,7 @@ class TestBase(unittest.TestCase): self.epsilon = epsilon self.decay = 0.9 - self.momentum = 0.0 + self.momentum = 0.1 self.centered = centered self.ms_out = self.decay * self.mean_square + (1 - self.decay @@ -170,8 +170,11 @@ class TestRmspropOp(TestBase): rmsprop_op.run(self.scope, self.place) self.check( - np.array(self.mean_square_tensor), self.ms_out, self.place, - self.mean_square_name) + np.array(self.mean_square_tensor), + self.ms_out, + self.place, + self.mean_square_name, + atol=atol) self.check( np.array(self.moment_tensor), self.moment_out, -- GitLab