@@ -67,6 +67,9 @@ def test_solve(self):
67
67
68
68
def check_shape (self , a_shape , b_shape , error_types ):
69
69
for xp , error_type in error_types .items ():
70
+ # TODO: to roll back the change once the issue with CUDA support is resolved for random
71
+ # a = xp.random.rand(*a_shape)
72
+ # b = xp.random.rand(*b_shape)
70
73
if xp is cupy and cupy .is_cuda_backend ():
71
74
a = xp .asarray (numpy .random .rand (* a_shape ))
72
75
b = xp .asarray (numpy .random .rand (* b_shape ))
@@ -149,6 +152,8 @@ def check_x(self, a_shape, dtype):
149
152
testing .assert_array_equal (a_gpu_copy , a_gpu )
150
153
151
154
def check_shape (self , a_shape ):
155
+ # TODO: to roll back the change once the issue with CUDA support is resolved for random
156
+ # a = cupy.random.rand(*a_shape)
152
157
a = cupy .asarray (numpy .random .rand (* a_shape ))
153
158
with self .assertRaises (cupy .linalg .LinAlgError ):
154
159
cupy .linalg .inv (a )
@@ -266,6 +271,9 @@ def check_lstsq_solution(
266
271
return results
267
272
268
273
def check_invalid_shapes (self , a_shape , b_shape ):
274
+ # TODO: to roll back the change once the issue with CUDA support is resolved for random
275
+ # a = cupy.random.rand(*a_shape)
276
+ # b = cupy.random.rand(*b_shape)
269
277
a = cupy .asarray (numpy .random .rand (* a_shape ))
270
278
b = cupy .asarray (numpy .random .rand (* b_shape ))
271
279
with pytest .raises (cupy .linalg .LinAlgError ):
@@ -342,11 +350,15 @@ def check_x(self, a_shape, ind, dtype):
342
350
testing .assert_array_equal (a_gpu_copy , a_gpu )
343
351
344
352
def check_shape (self , a_shape , ind ):
353
+ # TODO: to roll back the change once the issue with CUDA support is resolved for random
354
+ # a = cupy.random.rand(*a_shape)
345
355
a = cupy .asarray (numpy .random .rand (* a_shape ))
346
356
with self .assertRaises (cupy .linalg .LinAlgError ):
347
357
cupy .linalg .tensorinv (a , ind = ind )
348
358
349
359
def check_ind (self , a_shape , ind ):
360
+ # TODO: to roll back the change once the issue with CUDA support is resolved for random
361
+ # a = cupy.random.rand(*a_shape)
350
362
a = cupy .asarray (numpy .random .rand (* a_shape ))
351
363
with self .assertRaises (ValueError ):
352
364
cupy .linalg .tensorinv (a , ind = ind )
0 commit comments