Skip to content

Commit

Permalink
refine unittest
Browse files Browse the repository at this point in the history
  • Loading branch information
zhangbo9674 committed Jan 26, 2022
1 parent 489fb28 commit b9af510
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion python/paddle/fluid/tests/unittests/test_optimizer.py
Original file line number Diff line number Diff line change
Expand Up @@ -1197,7 +1197,7 @@ def test_with_state_dict(self):
out_no_state_dict = self.check_with_opt_state_dict(
use_save_load=False)
self.assertTrue(
np.allclose(out_use_state_dict[0], out_no_state_dict[0]))
np.array_equal(out_use_state_dict, out_no_state_dict))


if __name__ == '__main__':
Expand Down

1 comment on commit b9af510

@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.