def assert_array_almost_equal_nulp(x, y, nulp=1):
 numpy.testing.assert_array_almost_equal_nulp(cupy.asnumpy(x), cupy.asnumpy(y), nulp=nulp)

def assert_array_almost_equal_nulp ( x , y , nulp = 1 ) : numpy . testing . assert_array_almost_equal_nulp ( cupy . asnumpy ( x ) , cupy . asnumpy ( y ) , nulp = nulp )
compare two arrays relatively to their spacing .