Returns the truth value of NOT x
element-wise.
tf.math.logical_not(
x: _atypes.TensorFuzzingAnnotation[_atypes.Bool], name=None
) -> _atypes.TensorFuzzingAnnotation[_atypes.Bool]
Example:
tf.math.logical_not(tf.constant([True, False]))
<tf.Tensor: shape=(2,), dtype=bool, numpy=array([False, True])>
Args | |
---|---|
x
|
A Tensor of type bool . A Tensor of type bool .
|
name
|
A name for the operation (optional). |
Returns | |
---|---|
A Tensor of type bool .
|