Exemplo n.º 1
0
 def test_func(self, *args, **kw):
     kw[name] = cupy
     x = impl(self, *args, **kw)
     kw[name] = numpy
     y = impl(self, *args, **kw)
     self.assertIsNotNone(x)
     self.assertIsNotNone(y)
     array.assert_array_less(x, y, err_msg, verbose)
     if type_check:
         self.assertEqual(x.dtype, y.dtype)
Exemplo n.º 2
0
 def test_func(self, *args, **kw):
     kw[name] = cupy
     x = impl(self, *args, **kw)
     kw[name] = numpy
     y = impl(self, *args, **kw)
     self.assertIsNotNone(x)
     self.assertIsNotNone(y)
     array.assert_array_less(x, y, err_msg, verbose)
     if type_check:
         self.assertEqual(x.dtype, y.dtype)
Exemplo n.º 3
0
Arquivo: helper.py Projeto: espg/cupy
 def check_func(x, y):
     array.assert_array_less(x, y, err_msg, verbose)
Exemplo n.º 4
0
 def check_func(x, y):
     array.assert_array_less(x, y, err_msg, verbose)
Exemplo n.º 5
0
 def test_func(self, *args, **kw):
     kw[name] = cupy
     x = impl(self, *args, **kw)
     kw[name] = numpy
     y = impl(self, *args, **kw)
     array.assert_array_less(x, y, err_msg, verbose)