tf.math.less

Returns the truth value of (x < y) element-wise.

tf.math.less(
    x, y, name=None
)

NOTE: math.less supports broadcasting. More about broadcasting here

Example:

x = tf.constant([5, 4, 6])
y = tf.constant([5])
tf.math.less(x, y) ==> [False, True, False]

x = tf.constant([5, 4, 6])
y = tf.constant([5, 6, 7])
tf.math.less(x, y) ==> [False, True, True]

Args:

Returns:

A Tensor of type bool.