cupy.testing.assert_array_almost_equal#
- cupy.testing.assert_array_almost_equal(x, y, decimal=6, err_msg='', verbose=True)[source]#
Raises an AssertionError if objects are not equal up to desired precision.
- Parameters
x (numpy.ndarray or cupy.ndarray) – The actual object to check.
y (numpy.ndarray or cupy.ndarray) – The desired, expected object.
decimal (int) – Desired precision.
err_msg (str) – The error message to be printed in case of failure.
verbose (bool) – If
True
, the conflicting values are appended to the error message.