From a2f2cde0314f698a935dcbaa3d038cfc2bfc6355 Mon Sep 17 00:00:00 2001 From: Qiao Longfei Date: Tue, 15 Jan 2019 10:28:09 +0800 Subject: [PATCH] revert test_adam_op test=develop --- python/paddle/fluid/tests/unittests/test_adam_op.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/python/paddle/fluid/tests/unittests/test_adam_op.py b/python/paddle/fluid/tests/unittests/test_adam_op.py index 2f4fc5772..15f277cdc 100644 --- a/python/paddle/fluid/tests/unittests/test_adam_op.py +++ b/python/paddle/fluid/tests/unittests/test_adam_op.py @@ -253,11 +253,11 @@ class TestSparseAdamOp(unittest.TestCase): row_numel = 12 self.row_numel = row_numel self.dense_inputs = { - "Param": np.full((height, row_numel), 1.0).astype("float32"), - "Moment1": np.full((height, row_numel), 1.0).astype("float32"), - "Moment2": np.full((height, row_numel), 1.0).astype("float32"), - 'Beta1Pow': np.array([beta1**3]).astype("float32"), - 'Beta2Pow': np.array([beta2**3]).astype("float32"), + "Param": np.full((height, row_numel), 5.0).astype("float32"), + "Moment1": np.full((height, row_numel), 5.0).astype("float32"), + "Moment2": np.full((height, row_numel), 5.0).astype("float32"), + 'Beta1Pow': np.array([beta1**10]).astype("float32"), + 'Beta2Pow': np.array([beta2**10]).astype("float32"), "LearningRate": np.full((1), 2.0).astype("float32") } self.init_output = np.full((height, row_numel), 0.0).astype("float32") -- GitLab