def numpy_cupy_array_equal(err_msg='', verbose=True, name='xp',
                           type_check=True, accept_error=True):
    def check_func(x, y):
        array.assert_array_equal(x, y, err_msg, verbose)
    return _make_decorator(check_func, name, type_check, accept_error)
Decorator that checks NumPy results and CuPy ones are equal.
dataset/ETHPy150Open pfnet/chainer/cupy/testing/helper.py/numpy_cupy_array_equal