tf.math.nextafter

Returns the next representable value of x1 in the direction of x2, element-wise.

tf.math.nextafter(
    x1, x2, name=None
)

This operation returns the same result as the C++ std::nextafter function.

It can also return a subnormal number.

Args:

Returns:

A Tensor. Has the same type as x1.

Cpp Compatibility

Equivalent to C++ std::nextafter function.