Skip to content

Commit 32f8f68

Browse files
Use numpy.random.seed in test_usm_type and test_sycl_queue
1 parent c9b8fff commit 32f8f68

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

tests/test_sycl_queue.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1698,6 +1698,7 @@ def test_slogdet(shape, is_empty, device):
16981698
ids=[device.filter_string for device in valid_devices],
16991699
)
17001700
def test_pinv(shape, hermitian, rcond_as_array, device):
1701+
numpy.random.seed(81)
17011702
if hermitian:
17021703
a_np = numpy.random.randn(*shape) + 1j * numpy.random.randn(*shape)
17031704
a_np = numpy.conj(a_np.T) @ a_np

tests/test_usm_type.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -850,6 +850,7 @@ def test_svd(usm_type, shape, full_matrices_param, compute_uv_param):
850850
],
851851
)
852852
def test_pinv(shape, hermitian, usm_type):
853+
numpy.random.seed(81)
853854
if hermitian:
854855
a = dp.random.randn(*shape) + 1j * dp.random.randn(*shape)
855856
a = dp.conj(a.T) @ a

0 commit comments

Comments
 (0)