Attend the Women in ML Symposium on December 7 Register now

tfp.experimental.distributions.marginal_fns.ps.logical_not

Stay organized with collections Save and categorize content based on your preferences.

Returns the truth value of NOT x element-wise.

Example:

tf.math.logical_not(tf.constant([True, False]))
<tf.Tensor: shape=(2,), dtype=bool, numpy=array([False,  True])>

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

A Tensor of type bool.