# tf.compat.v1.verify_tensor_all_finite

<br />

|---|
| [![](https://www.tensorflow.org/images/GitHub-Mark-32px.png) View source on GitHub](https://github.com/tensorflow/tensorflow/blob/v2.13.1/tensorflow/python/ops/numerics.py#L28-L47) |

Assert that the tensor does not contain any NaN's or Inf's.

#### View aliases


**Compat aliases for migration**

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

[`tf.compat.v1.debugging.assert_all_finite`](https://www.tensorflow.org/api_docs/python/tf/compat/v1/verify_tensor_all_finite)

<br />

    tf.compat.v1.verify_tensor_all_finite(
        t=None, msg=None, name=None, x=None, message=None
    )

<br />

<br />

<br />

| ## Args ||
|---|---|
| `t` | Tensor to check. |
| `msg` | Message to log on failure. |
| `name` | A name for this operation (optional). |
| `x` | Alias for t. |
| `message` | Alias for msg. |

<br />

<br />

<br />

<br />

| ## Returns ||
|---|---|
| Same tensor as `t`. ||

<br />