diff --git a/test/legacy_test/test_lu_op.py b/test/legacy_test/test_lu_op.py index a99b7bc3175c7..27f6505641c63 100644 --- a/test/legacy_test/test_lu_op.py +++ b/test/legacy_test/test_lu_op.py @@ -195,6 +195,7 @@ def run_lu_dygraph(shape, dtype): np_dtype = np.float32 elif dtype == "float64": np_dtype = np.float64 + np.random.seed(1024) a = np.random.rand(*shape).astype(np_dtype) m = a.shape[-2] n = a.shape[-1]