Skip to content

Commit 673c1ac

Browse files
committed
Seed test_generic_solve_to_solve_triangular
1 parent 0bfe6d2 commit 673c1ac

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

tests/tensor/rewriting/test_linalg.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,8 @@ def test_generic_solve_to_solve_triangular():
9494
b2 = solve(U, x)
9595
f = pytensor.function([A, x], b1)
9696

97-
X = np.random.normal(size=(10, 10)).astype(config.floatX)
97+
rng = np.random.default_rng(97)
98+
X = rng.normal(size=(10, 10)).astype(config.floatX)
9899
X = X @ X.T
99100
X_chol = np.linalg.cholesky(X)
100101
eye = np.eye(10, dtype=config.floatX)

0 commit comments

Comments
 (0)