def numpy_cupy_allclose(rtol=1e-07, atol=0, err_msg='', verbose=True, name='xp', type_check=True, accept_error=False):
 def check_func(cupy_result, numpy_result):
  array.assert_allclose(cupy_result, numpy_result, rtol, atol, err_msg, verbose)
 return _make_decorator(check_func, name, type_check, accept_error)

def numpy_cupy_allclose ( rtol = 1e-07 , atol = 0 , err_msg = '' , verbose = True , name = 'xp' , type_check = True , accept_error = False ) : def check_func ( cupy_result , numpy_result ) : array . assert_allclose ( cupy_result , numpy_result , rtol , atol , err_msg , verbose ) return _make_decorator ( check_func , name , type_check , accept_error )
decorator that checks numpy results and cupy ones are close .