chainerx.any

chainerx.any(x)

Test whether any array element along a given axis evaluate to True.

Parameters
  • x (ndarray) – Input array.

  • axis (None or int or tuple of ints) – Axis or axes along which OR reduction is performed. The flattened array is used by default.

  • keepdims (bool) – If this is set to True, the reduced axes are left in the result as dimensions with size one.

Returns

Output array of type bool.

Return type

ndarray

Note

During backpropagation, this function does not propagate gradients.

See also

numpy.any