Skip to content

Commit f0f40bc

Browse files
author
Vahid Tavanashad
committed
update test_linalg.py
1 parent 23d275a commit f0f40bc

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

dpnp/tests/test_linalg.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -355,7 +355,7 @@ def test_nan_input(self, p):
355355
"p", [None, -dpnp.inf, -2, -1, 1, 2, dpnp.inf, "fro"]
356356
)
357357
def test_nan(self, p):
358-
a = generate_random_numpy_array((2, 2, 2, 2))
358+
a = numpy.array(numpy.random.uniform(-5, 5, 16)).reshape(2, 2, 2, 2)
359359
a[0, 0] = 0
360360
a[1, 1] = 0
361361
ia = dpnp.array(a)
@@ -2852,13 +2852,13 @@ class TestSvd:
28522852
def get_tol(self, dtype):
28532853
tol = 1e-06
28542854
if dtype in (dpnp.float32, dpnp.complex64):
2855-
tol = 1e-03
2855+
tol = 1e-04
28562856
elif not has_support_aspect64() and dtype in (
28572857
dpnp.int32,
28582858
dpnp.int64,
28592859
None,
28602860
):
2861-
tol = 1e-03
2861+
tol = 1e-04
28622862
self._tol = tol
28632863

28642864
def check_types_shapes(

0 commit comments

Comments
 (0)