Skip to content
This repository was archived by the owner on Sep 9, 2025. It is now read-only.

Commit 8902a41

Browse files
authored
Use fixed random seed (PaddlePaddle#43659)
1 parent a9134dc commit 8902a41

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

python/paddle/fluid/tests/unittests/distribution/test_distribution_beta.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,8 @@
2222
from config import ATOL, DEVICES, RTOL
2323
from parameterize import TEST_CASE_NAME, parameterize_cls, place, xrand
2424

25+
np.random.seed(2022)
26+
2527

2628
@place(DEVICES)
2729
@parameterize_cls((TEST_CASE_NAME, 'alpha', 'beta'),

0 commit comments

Comments
 (0)