From 644a894d15778cea62e238556c87327352517eb1 Mon Sep 17 00:00:00 2001 From: Haohongxiang <86215757+haohongxiang@users.noreply.github.com> Date: Wed, 16 Feb 2022 11:23:31 +0800 Subject: [PATCH] Update test_linalg_cond.py (#39574) add control of random seed in UT of cond --- python/paddle/fluid/tests/unittests/test_linalg_cond.py | 1 + 1 file changed, 1 insertion(+) diff --git a/python/paddle/fluid/tests/unittests/test_linalg_cond.py b/python/paddle/fluid/tests/unittests/test_linalg_cond.py index d13bdd676b..9e3edd8268 100644 --- a/python/paddle/fluid/tests/unittests/test_linalg_cond.py +++ b/python/paddle/fluid/tests/unittests/test_linalg_cond.py @@ -47,6 +47,7 @@ def test_dygraph_assert_true(self, x_list, p_list): def gen_input(): + np.random.seed(2021) # generate square matrix or batches of square matrices input_1 = np.random.rand(5, 5).astype('float32') input_2 = np.random.rand(3, 6, 6).astype('float64') -- GitLab