Note: Functions takingTensor
arguments can also take anything accepted bytf.convert_to_tensor
.
TensorFlow provides several operations and classes that you can use to control the execution of operations and add conditional dependencies to your graph.
TensorFlow provides several operations that you can use to add logical operators to your graph.
TensorFlow provides several operations that you can use to add comparison operators to your graph.
TensorFlow provides several operations that you can use to validate values and debug your graph.
tf.is_finite
tf.is_inf
tf.is_nan
tf.verify_tensor_all_finite
tf.check_numerics
tf.add_check_numerics_ops
tf.Assert
tf.Print
© 2018 The TensorFlow Authors. All rights reserved.
Licensed under the Creative Commons Attribution License 3.0.
Code samples licensed under the Apache 2.0 License.
https://www.tensorflow.org/api_guides/python/control_flow_ops