def assert_array_list_equal(xlist, ylist, err_msg='', verbose=True):
 if (len(xlist) != len(ylist)):
  raise AssertionError('List size is different')
 for (x, y) in zip(xlist, ylist):
  numpy.testing.assert_array_equal(cupy.asnumpy(x), cupy.asnumpy(y), err_msg=err_msg, verbose=verbose)

def assert_array_list_equal ( xlist , ylist , err_msg = '' , verbose = True ) : if ( len ( xlist ) != len ( ylist ) ) : raise AssertionError ( 'List size is different' ) for ( x , y ) in zip ( xlist , ylist ) : numpy . testing . assert_array_equal ( cupy . asnumpy ( x ) , cupy . asnumpy ( y ) , err_msg = err_msg , verbose = verbose )
compares lists of arrays pairwise with assert_array_equal .