Skip to content

Commit

Permalink
fix uniform_random_inplace test (PaddlePaddle#57225)
Browse files Browse the repository at this point in the history
  • Loading branch information
ZzSean authored Sep 14, 2023
1 parent 94aaa1b commit 0cc6df1
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 0cc6df1

Please sign in to comment.