@@ -257,8 +257,8 @@ def test_scalar(self, dtype):
257257 ],
258258 )
259259 def test_basic (self , dtype , shape1 , shape2 ):
260- a = generate_random_numpy_array (shape1 , dtype )
261- b = generate_random_numpy_array (shape2 , dtype )
260+ a = generate_random_numpy_array (shape1 , dtype , low = - 5 , high = 5 )
261+ b = generate_random_numpy_array (shape2 , dtype , low = - 5 , high = 5 )
262262 ia = dpnp .array (a )
263263 ib = dpnp .array (b )
264264
@@ -328,8 +328,8 @@ def test_out_scalar(self, dtype):
328328 ],
329329 )
330330 def test_out (self , dtype , shape1 , shape2 , out_shape ):
331- a = generate_random_numpy_array (shape1 , dtype )
332- b = generate_random_numpy_array (shape2 , dtype )
331+ a = generate_random_numpy_array (shape1 , dtype , low = - 5 , high = 5 )
332+ b = generate_random_numpy_array (shape2 , dtype , low = - 5 , high = 5 )
333333 ia = dpnp .array (a )
334334 ib = dpnp .array (b )
335335
@@ -466,8 +466,8 @@ def test_scalar(self, dtype):
466466 ],
467467 )
468468 def test_basic (self , dtype , shape1 , shape2 ):
469- a = generate_random_numpy_array (shape1 , dtype )
470- b = generate_random_numpy_array (shape2 , dtype )
469+ a = generate_random_numpy_array (shape1 , dtype , low = - 5 , high = 5 )
470+ b = generate_random_numpy_array (shape2 , dtype , low = - 5 , high = 5 )
471471 ia = dpnp .array (a )
472472 ib = dpnp .array (b )
473473
@@ -617,7 +617,7 @@ def setup_method(self):
617617 ((6 ,), (6 , 10 ), (10 , 7 ), (7 , 8 )),
618618 ((4 , 6 ), (6 , 10 ), (10 , 7 ), (7 ,)),
619619 ((6 ,), (6 , 10 ), (10 , 7 ), (7 ,)),
620- ((4 , 6 ), (6 , 9 ), (9 , 7 ), (7 , 8 ), (8 , 3 )),
620+ ((4 , 6 ), (6 , 2 ), (2 , 7 ), (7 , 5 ), (5 , 3 )),
621621 ],
622622 ids = [
623623 "two_arrays" ,
@@ -637,7 +637,7 @@ def test_basic(self, shapes, dtype):
637637 numpy_array_list = []
638638 dpnp_array_list = []
639639 for shape in shapes :
640- a = generate_random_numpy_array (shape , dtype , low = - 4 , high = 4 )
640+ a = generate_random_numpy_array (shape , dtype , low = - 2 , high = 2 )
641641 ia = dpnp .array (a )
642642
643643 numpy_array_list .append (a )
@@ -661,7 +661,7 @@ def test_basic(self, shapes, dtype):
661661 ((6 ,), (6 , 10 ), (10 , 7 ), (7 , 8 ), (8 ,)),
662662 ((4 , 6 ), (6 , 10 ), (10 , 7 ), (7 ,), (4 ,)),
663663 ((6 ,), (6 , 10 ), (10 , 7 ), (7 ,), ()),
664- ((4 , 6 ), (6 , 9 ), (9 , 7 ), (7 , 8 ), (8 , 3 ), (4 , 3 )),
664+ ((4 , 6 ), (6 , 2 ), (2 , 7 ), (7 , 5 ), (5 , 3 ), (4 , 3 )),
665665 ],
666666 ids = [
667667 "two_arrays" ,
@@ -681,7 +681,7 @@ def test_out(self, shapes, dtype):
681681 numpy_array_list = []
682682 dpnp_array_list = []
683683 for shape in shapes [:- 1 ]:
684- a = generate_random_numpy_array (shape , dtype , low = - 4 , high = 4 )
684+ a = generate_random_numpy_array (shape , dtype , low = - 2 , high = 2 )
685685 ia = dpnp .array (a )
686686
687687 numpy_array_list .append (a )
@@ -777,8 +777,8 @@ def test_scalar(self, dtype):
777777 @pytest .mark .parametrize ("dtype" , get_all_dtypes (no_none = True ))
778778 @pytest .mark .parametrize ("axes" , [0 , 1 , 2 ])
779779 def test_basic (self , dtype , axes ):
780- a = generate_random_numpy_array ((4 , 4 , 4 ), dtype )
781- b = generate_random_numpy_array ((4 , 4 , 4 ), dtype )
780+ a = generate_random_numpy_array ((4 , 4 , 4 ), dtype , low = - 5 , high = 5 )
781+ b = generate_random_numpy_array ((4 , 4 , 4 ), dtype , low = - 5 , high = 5 )
782782 ia = dpnp .array (a )
783783 ib = dpnp .array (b )
784784
@@ -798,8 +798,8 @@ def test_basic(self, dtype, axes):
798798 ],
799799 )
800800 def test_axes (self , dtype , axes ):
801- a = generate_random_numpy_array ((2 , 5 , 3 , 4 ), dtype )
802- b = generate_random_numpy_array ((4 , 2 , 5 , 3 ), dtype )
801+ a = generate_random_numpy_array ((2 , 5 , 3 , 4 ), dtype , low = - 5 , high = 5 )
802+ b = generate_random_numpy_array ((4 , 2 , 5 , 3 ), dtype , low = - 5 , high = 5 )
803803 ia = dpnp .array (a )
804804 ib = dpnp .array (b )
805805
@@ -810,8 +810,8 @@ def test_axes(self, dtype, axes):
810810 @pytest .mark .parametrize ("dtype1" , get_all_dtypes ())
811811 @pytest .mark .parametrize ("dtype2" , get_all_dtypes ())
812812 def test_input_dtype_matrix (self , dtype1 , dtype2 ):
813- a = generate_random_numpy_array ((3 , 4 , 5 ), dtype1 )
814- b = generate_random_numpy_array ((4 , 5 , 2 ), dtype2 )
813+ a = generate_random_numpy_array ((3 , 4 , 5 ), dtype1 , low = - 5 , high = 5 )
814+ b = generate_random_numpy_array ((4 , 5 , 2 ), dtype2 , low = - 5 , high = 5 )
815815 ia = dpnp .array (a )
816816 ib = dpnp .array (b )
817817
0 commit comments