cupy.any¶
-
cupy.
any
(a, axis=None, out=None, keepdims=False)[source]¶ Tests whether any array elements along a given axis evaluate to True.
Parameters: - a (cupy.ndarray) – Input array.
- axis (int or tuple of ints) – Along which axis to compute all. The flattened array is used by default.
- out (cupy.ndarray) – Output array.
- keepdims (bool) – If
True
, the axis is remained as an axis of size one.
Returns: An array reduced of the input array along the axis.
Return type: See also