TF 2.0 is out! Get hands-on practice at TF World, Oct 28-31. Use code TF20 for 20% off select passes. Register now

tf.math.logical_or

TensorFlow 1 version

Defined in generated file: python/ops/gen_math_ops.py

Returns the truth value of x OR y element-wise.

Aliases:

  • tf.RaggedTensor.__or__
  • tf.compat.v1.RaggedTensor.__or__
  • tf.compat.v1.logical_or
  • tf.compat.v1.math.logical_or
  • tf.compat.v2.RaggedTensor.__or__
  • tf.compat.v2.logical_or
  • tf.compat.v2.math.logical_or
  • tf.logical_or
tf.math.logical_or(
    x,
    y,
    name=None
)

NOTE: math.logical_or supports broadcasting. More about broadcasting here

Args:

  • x: A Tensor of type bool.
  • y: A Tensor of type bool.
  • name: A name for the operation (optional).

Returns:

A Tensor of type bool.