Esempio 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_max_ulp(x, y, maxulp, dtype)
     if type_check:
         self.assertEqual(x.dtype, y.dtype)
Esempio 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_max_ulp(x, y, maxulp, dtype)
     if type_check:
         self.assertEqual(x.dtype, y.dtype)
Esempio n. 3
0
File: helper.py Progetto: espg/cupy
 def check_func(x, y):
     array.assert_array_max_ulp(x, y, maxulp, dtype)
Esempio n. 4
0
 def check_func(x, y):
     array.assert_array_max_ulp(x, y, maxulp, dtype)
Esempio 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_max_ulp(x, y, maxulp, dtype)