TensorFlow 2.0 Beta is available Learn more

tf.math.logical_and

TensorFlow 2.0 version

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

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

Aliases:

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

NOTE: math.logical_and 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.