Skip to content

Commit

Permalink
Remove np Deprecation Warning since np.bool is alias of bool
Browse files Browse the repository at this point in the history
  • Loading branch information
zhhsplendid committed May 8, 2021
1 parent c1c18b0 commit 138f87b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion python/paddle/fluid/tests/unittests/test_cond.py
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ def false_func():
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):
"""
Expand Down

1 comment on commit 138f87b

@paddle-bot-old
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Congratulation! Your pull request passed all required CI. You could ask reviewer(s) to approve and merge. 🎉

Please sign in to comment.