cupy.testing.assert_array_equal¶
-
cupy.testing.
assert_array_equal
(x, y, err_msg='', verbose=True, strides_check=False)[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.
See also