logical_or

ivy.logical_or(x1, x2, f=None)[source]

Computes the truth value of x1 OR x2 element-wise.

Parameters
  • x1 (array) – Input array 1.

  • x2 (array) – Input array 2.

  • f (ml_framework, optional) – Machine learning framework. Inferred from inputs if None.

Returns

Boolean result of the logical OR operation applied element-wise x1 and x2.


Supported Frameworks:

empty jax_logo empty tf_logo empty pytorch_logo empty mxnet_logo empty numpy_logo empty