tf.math.logical_not

TensorFlow 1 version

Returns the truth value of NOT x element-wise.

Aliases: tf.logical_not

tf.math.logical_not(
    x,
    name=None
)

Used in the tutorials:

Args:

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

Returns:

A Tensor of type bool.

Compat aliases