test_const_value.py 431 字节
Newer Older
Q
qiaolongfei 已提交
1 2 3 4 5 6 7
import unittest
import paddle.v2.fluid.framework as framework


class ConditionalBlock(unittest.TestCase):
    def test_const_value(self):
        self.assertEqual(framework.GRAD_VAR_SUFFIX, "@GRAD")
Q
qiaolongfei 已提交
8 9 10
        self.assertEqual(framework.TEMP_VAR_NAME, "@TEMP@")
        self.assertEqual(framework.GRAD_VAR_SUFFIX, "@GRAD")
        self.assertEqual(framework.ZERO_VAR_SUFFIX, "@ZERO")
Q
qiaolongfei 已提交
11 12 13 14


if __name__ == '__main__':
    unittest.main()