TensorFlow 2.0 Beta is available Learn more

tf.math.logical_not

TensorFlow 2.0 version

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

Returns the truth value of NOT x element-wise.

Aliases:

  • tf.RaggedTensor.__invert__
  • tf.Tensor.__invert__
  • tf.compat.v1.RaggedTensor.__invert__
  • tf.compat.v1.Tensor.__invert__
  • tf.compat.v1.logical_not
  • tf.compat.v1.math.logical_not
  • tf.compat.v2.RaggedTensor.__invert__
  • tf.compat.v2.Tensor.__invert__
  • tf.compat.v2.logical_not
  • tf.compat.v2.math.logical_not
  • tf.logical_not
tf.math.logical_not(
    x,
    name=None
)

Args:

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

Returns:

A Tensor of type bool.