From 8902a4146bc7e3aaa0dad8444e8997a9038c50ea Mon Sep 17 00:00:00 2001 From: Shijie <505749828@qq.com> Date: Thu, 23 Jun 2022 10:50:25 +0800 Subject: [PATCH] Use fixed random seed (#43659) --- .../tests/unittests/distribution/test_distribution_beta.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/python/paddle/fluid/tests/unittests/distribution/test_distribution_beta.py b/python/paddle/fluid/tests/unittests/distribution/test_distribution_beta.py index 1d23b0f79d2..a49a9d747ca 100644 --- a/python/paddle/fluid/tests/unittests/distribution/test_distribution_beta.py +++ b/python/paddle/fluid/tests/unittests/distribution/test_distribution_beta.py @@ -22,6 +22,8 @@ import config from config import ATOL, DEVICES, RTOL from parameterize import TEST_CASE_NAME, parameterize_cls, place, xrand +np.random.seed(2022) + @place(DEVICES) @parameterize_cls((TEST_CASE_NAME, 'alpha', 'beta'), -- GitLab