def test_cupy_matmul(self, xp, dtype1, dtype2):
if ((dtype1, dtype2) in self.skip_dtypes or
(dtype2, dtype1) in self.skip_dtypes):
return xp.array([])
shape1, shape2 = self.shape_pair
x1 = testing.shaped_arange(shape1, xp, dtype1)
x2 = testing.shaped_arange(shape2, xp, dtype2)
return xp.matmul(x1, x2)
评论列表
文章目录