Skip to content

Commit ec1fc08

Browse files
committed
TST: seed random generator in tests
1 parent 40a2d69 commit ec1fc08

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

torch_np/tests/numpy_tests/linalg/test_linalg.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1718,6 +1718,7 @@ def check_qr_stacked(self, a):
17181718
np.csingle, np.cdouble])
17191719
def test_stacked_inputs(self, outer_size, size, dt):
17201720

1721+
np.random.seed(12345)
17211722
A = np.random.normal(size=outer_size + size).astype(dt)
17221723
B = np.random.normal(size=outer_size + size).astype(dt)
17231724
self.check_qr_stacked(A)

0 commit comments

Comments
 (0)