# tf.estimator.NanLossDuringTrainingError

<br />

|---|
| [![](https://www.tensorflow.org/images/GitHub-Mark-32px.png) View source on GitHub](https://github.com/tensorflow/tensorflow/blob/v2.14.0/tensorflow/python/training/basic_session_run_hooks.py#L753-L757) |

DEPRECATED FUNCTION

#### View aliases


**Compat aliases for migration**

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

[`tf.compat.v1.estimator.NanLossDuringTrainingError`](https://www.tensorflow.org/api_docs/python/tf/estimator/NanLossDuringTrainingError), [`tf.compat.v1.train.NanLossDuringTrainingError`](https://www.tensorflow.org/api_docs/python/tf/estimator/NanLossDuringTrainingError)

<br />

    tf.estimator.NanLossDuringTrainingError(
        *args, **kwargs
    )

> [!WARNING]
> **Deprecated:** THIS FUNCTION IS DEPRECATED. It will be removed in a future version. Instructions for updating: Use tf.keras instead.