check_numerics operations themselves are added for each half, float,
or double tensor in the current default graph. For all ops in the graph, the
check_numerics op for all of its (half, float, or double) inputs
is guaranteed to run before the check_numerics op on any of its outputs.
Returns
A group op depending on all check_numerics ops added.
Raises
ValueError
If the graph contains any numeric operations in a control flow
structure.
RuntimeError
If called with eager execution enabled.
eager compatibility
Not compatible with eager execution. To check for Infs and NaNs under
eager execution, call tf.debugging.enable_check_numerics() once before
executing the checked operations.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2024-04-26 UTC."],[],[],null,["# tf.compat.v1.add_check_numerics_ops\n\n\u003cbr /\u003e\n\n|---------------------------------------------------------------------------------------------------------------------------|\n| [View source on GitHub](https://github.com/tensorflow/tensorflow/blob/v2.16.1/tensorflow/python/ops/numerics.py#L81-L131) |\n\nConnect a [`tf.debugging.check_numerics`](../../../tf/debugging/check_numerics) to every floating point tensor. \n\n tf.compat.v1.add_check_numerics_ops()\n\n`check_numerics` operations themselves are added for each `half`, `float`,\nor `double` tensor in the current default graph. For all ops in the graph, the\n`check_numerics` op for all of its (`half`, `float`, or `double`) inputs\nis guaranteed to run before the `check_numerics` op on any of its outputs.\n| **Note:** This API is not compatible with the use of [`tf.cond`](../../../tf/cond) or [`tf.while_loop`](../../../tf/while_loop), and will raise a `ValueError` if you attempt to call it in such a graph.\n\n\u003cbr /\u003e\n\n\u003cbr /\u003e\n\n\u003cbr /\u003e\n\n| Returns ------- ||\n|---|---|\n| A `group` op depending on all `check_numerics` ops added. ||\n\n\u003cbr /\u003e\n\n\u003cbr /\u003e\n\n\u003cbr /\u003e\n\n\u003cbr /\u003e\n\n| Raises ------ ||\n|----------------|---------------------------------------------------------------------------|\n| `ValueError` | If the graph contains any numeric operations in a control flow structure. |\n| `RuntimeError` | If called with eager execution enabled. |\n\n\u003cbr /\u003e\n\n\u003cbr /\u003e\n\neager compatibility\n-------------------\n\n\u003cbr /\u003e\n\nNot compatible with eager execution. To check for `Inf`s and `NaN`s under\neager execution, call [`tf.debugging.enable_check_numerics()`](../../../tf/debugging/enable_check_numerics) once before\nexecuting the checked operations.\n\n\u003cbr /\u003e\n\n\u003cbr /\u003e"]]