@@ -1159,8 +1159,8 @@ def test_large_values(self, dtype):
11591159 )
11601160 def test_special_case (self , dt_out , shape1 , shape2 ):
11611161 # Although inputs are int, gemm will be used for calculation
1162- a = numpy . ones (shape1 , dtype = numpy .int8 )
1163- b = numpy . ones (shape2 , dtype = numpy .int8 )
1162+ a = generate_random_numpy_array (shape1 , dtype = numpy .int8 )
1163+ b = generate_random_numpy_array (shape2 , dtype = numpy .int8 )
11641164 ia , ib = dpnp .array (a ), dpnp .array (b )
11651165
11661166 result = dpnp .matmul (ia , ib , dtype = dt_out )
@@ -1172,8 +1172,8 @@ def test_special_case(self, dt_out, shape1, shape2):
11721172 assert_dtype_allclose (result , expected )
11731173
11741174 def test_bool (self ):
1175- a = numpy . ones ((3 , 4 ), dtype = dpnp .bool )
1176- b = numpy . ones ((4 , 5 ), dtype = dpnp .bool )
1175+ a = generate_random_numpy_array ((3 , 4 ), dtype = dpnp .bool )
1176+ b = generate_random_numpy_array ((4 , 5 ), dtype = dpnp .bool )
11771177 ia , ib = dpnp .array (a ), dpnp .array (b )
11781178
11791179 # the output is (3, 4) array filled with 4
0 commit comments