Returns the truth value of (x > y) element-wise.
tfp.experimental.distributions.marginal_fns.ps.greater(
x: Annotated[Any, TV_Greater_T], y: Annotated[Any, TV_Greater_T], name=None
) -> Annotated[Any, _atypes.Bool]
Example:
x = tf.constant([5, 4, 6])
y = tf.constant([5, 2, 5])
tf.math.greater(x, y) ==> [False, True, True]
x = tf.constant([5, 4, 6])
y = tf.constant([5])
tf.math.greater(x, y) ==> [False, False, True]
Returns | |
---|---|
A Tensor of type bool .
|