# tf.raw_ops.NextAfter

<br />

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

#### View aliases


**Compat aliases for migration**

See
[Migration guide](https://www.tensorflow.org/guide/migrate) for
more details.

[`tf.compat.v1.raw_ops.NextAfter`](https://www.tensorflow.org/api_docs/python/tf/raw_ops/NextAfter)

<br />

    tf.raw_ops.NextAfter(
        x1, x2, name=None
    )

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

It can also return a subnormal number.

<br />

<br />

<br />

| ## Args ||
|---|---|
| `x1` | A `Tensor`. Must be one of the following types: `float64`, `float32`. |
| `x2` | A `Tensor`. Must have the same type as `x1`. |
| `name` | A name for the operation (optional). |

<br />

<br />

<br />

<br />

| ## Returns ||
|---|---|
| A `Tensor`. Has the same type as `x1`. ||

<br />

<br />

## cpp compatibility

<br />

Equivalent to C++ std::nextafter function.

<br />

<br />