cupy.testing.assert_array_equal#

cupy.testing.assert_array_equal(x, y, err_msg='', verbose=True, strides_check=False, **kwargs)[source]#

Raises an AssertionError if two array_like objects are not equal.

Parameters:
  • x (numpy.ndarray or cupy.ndarray) – The actual object to check.

  • y (numpy.ndarray or cupy.ndarray) – The desired, expected object.

  • strides_check (bool) – If True, consistency of strides is also checked.

  • 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.

  • strict (bool) – If True, raise an AssertionError when either the shape or the data type of the array_like objects does not match. Requires NumPy version 1.24 or above.