示例#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_arrays_almost_equal_nulp(x, y, nulp)
     if type_check:
         self.assertEqual(x.dtype, y.dtype)
示例#2
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_arrays_almost_equal_nulp(x, y, nulp)
     if type_check:
         self.assertEqual(x.dtype, y.dtype)
示例#3
0
 def check_func(x, y):
     array.assert_arrays_almost_equal_nulp(x, y, nulp)
示例#4
0
 def check_func(x, y):
     array.assert_arrays_almost_equal_nulp(x, y, nulp)
示例#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_arrays_almost_equal_nulp(x, y, nulp)