Missed TensorFlow Dev Summit? Check out the video playlist. Watch recordings

tf.math.logical_or

TensorFlow 1 version

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

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.