tf.debugging.check_numerics to every floating point tensor.
Compat aliases for migration
See Migration guide for more details.
check_numerics operations themselves are added for each
double tensor in the current default graph. For all ops in the graph, the
check_numerics op for all of its (
double) inputs is guaranteed to run before the
check_numerics op on any of its outputs.
Note: This API is not compatible with the use of
tf.while_loop, and will raise a
ValueErrorif you attempt to call it in such a graph.
| A |
| ||If the graph contains any numeric operations in a control flow structure.|
| ||If called with eager execution enabled.|
Not compatible with eager execution. To check for
NaNs under eager execution, call
tfe.seterr(inf_or_nan='raise') once before executing the checked operations.
© 2020 The TensorFlow Authors. All rights reserved.
Licensed under the Creative Commons Attribution License 3.0.
Code samples licensed under the Apache 2.0 License.