def assert_array_almost_equal(x, y, decimal=6, err_msg='', verbose=True):
 numpy.testing.assert_array_almost_equal(cupy.asnumpy(x), cupy.asnumpy(y), decimal=decimal, err_msg=err_msg, verbose=verbose)

def assert_array_almost_equal ( x , y , decimal = 6 , err_msg = '' , verbose = True ) : numpy . testing . assert_array_almost_equal ( cupy . asnumpy ( x ) , cupy . asnumpy ( y ) , decimal = decimal , err_msg = err_msg , verbose = verbose )
raises an assertionerror if objects are not equal up to desired precision .