From 927f5d567c737fc9e754f911a1ced3def77b0651 Mon Sep 17 00:00:00 2001 From: qiaolongfei Date: Tue, 19 Dec 2017 18:47:20 +0800 Subject: [PATCH] complete const test --- python/paddle/v2/fluid/tests/test_const_value.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/python/paddle/v2/fluid/tests/test_const_value.py b/python/paddle/v2/fluid/tests/test_const_value.py index fd034f55e7b..f8c17c2c986 100644 --- a/python/paddle/v2/fluid/tests/test_const_value.py +++ b/python/paddle/v2/fluid/tests/test_const_value.py @@ -5,6 +5,9 @@ import paddle.v2.fluid.framework as framework class ConditionalBlock(unittest.TestCase): def test_const_value(self): self.assertEqual(framework.GRAD_VAR_SUFFIX, "@GRAD") + self.assertEqual(framework.TEMP_VAR_NAME, "@TEMP@") + self.assertEqual(framework.GRAD_VAR_SUFFIX, "@GRAD") + self.assertEqual(framework.ZERO_VAR_SUFFIX, "@ZERO") if __name__ == '__main__': -- GitLab