Skip to content

Commit

Permalink
[Cherry-pick] fix uniform_random_inplace test (#57380)
Browse files Browse the repository at this point in the history
fix uniform_random_inplace test
Cherry-pick from #57225
  • Loading branch information
ZzSean authored Sep 19, 2023
1 parent c811bb8 commit aea3772
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/legacy_test/test_uniform_random_inplace_op.py
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ def test_check_output(self):

def verify_output(self, outs):
hist, prob = self.output_hist(np.array(outs[0]))
np.testing.assert_allclose(hist, prob, rtol=0, atol=0.001)
np.testing.assert_allclose(hist, prob, rtol=0.015, atol=0.001)

# TODO: Due to the lack of the self.python_api=paddle.uniform_random_inplace setting, the dynamic graph is temporarily turned off, set check_dygraph=False
def test_check_grad(self):
Expand Down

0 comments on commit aea3772

Please sign in to comment.