diff --git a/python/paddle/fluid/tests/unittests/test_cond.py b/python/paddle/fluid/tests/unittests/test_cond.py index ad5420b92c092d7f7456bdfc5dc3f86d0287578c..0470a2df35f68f918684d9191827e523aa6767fa 100644 --- a/python/paddle/fluid/tests/unittests/test_cond.py +++ b/python/paddle/fluid/tests/unittests/test_cond.py @@ -96,7 +96,7 @@ class TestCondInputOutput(unittest.TestCase): self.assertTrue( np.allclose(np.asarray(ret[0]), np.full((1, 2), 1, np.int32))) self.assertTrue( - np.allclose(np.asarray(ret[1]), np.full((2, 3), True, np.bool))) + np.allclose(np.asarray(ret[1]), np.full((2, 3), True, bool))) def test_pass_and_modify_var(self): """