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 tfe.seterr(inf_or_nan='raise') once before executing
the checked operations.
[null,null,["Last updated 2020-10-01 UTC."],[],[],null,["# tf.add_check_numerics_ops\n\n\u003cbr /\u003e\n\n|---------------------------------------------------------------------------------------------------------------------------|\n| [View source on GitHub](https://github.com/tensorflow/tensorflow/blob/v1.15.0/tensorflow/python/ops/numerics.py#L72-L122) |\n\nConnect a [`tf.debugging.check_numerics`](../tf/debugging/check_numerics) to every floating point tensor.\n\n#### View aliases\n\n\n**Compat aliases for migration**\n\nSee\n[Migration guide](https://www.tensorflow.org/guide/migrate) for\nmore details.\n\n[`tf.compat.v1.add_check_numerics_ops`](/api_docs/python/tf/compat/v1/add_check_numerics_ops)\n\n\u003cbr /\u003e\n\n tf.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#### Eager Compatibility\n\nNot compatible with eager execution. To check for `Inf`s and `NaN`s under\neager execution, call `tfe.seterr(inf_or_nan='raise')` once before executing\nthe checked operations."]]