예제 #1
0
파일: helper.py 프로젝트: takiyu/chainer
 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)
예제 #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)
예제 #3
0
파일: helper.py 프로젝트: espg/cupy
 def check_func(x, y):
     array.assert_array_max_ulp(x, y, maxulp, dtype)
예제 #4
0
파일: helper.py 프로젝트: bittnt/chainer
 def check_func(x, y):
     array.assert_array_max_ulp(x, y, maxulp, dtype)
예제 #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)