def numpy_cupy_array_max_ulp(maxulp=1, dtype=None, name='xp', type_check=True,
                             accept_error=True):
    def check_func(x, y):
        array.assert_array_max_ulp(x, y, maxulp, dtype)
    return _make_decorator(check_func, name, type_check, accept_error)
Decorator that checks results of NumPy and CuPy ones are equal w.r.t. ulp.
dataset/ETHPy150Open pfnet/chainer/cupy/testing/helper.py/numpy_cupy_array_max_ulp