tfdbg.add_debug_tensor_watch(run_options, node_name, output_slot=0, debug_ops='DebugIdentity', debug_urls=None)See the guide: TensorFlow Debugger > Functions for adding debug watches
Add watch on a Tensor to RunOptions.
N.B.: Under certain circumstances, the Tensor may not be actually watched (e.g., if the node of the Tensor is constant-folded during runtime).
run_options: An instance of config_pb2.RunOptions to be modified.node_name: (str) name of the node to watch.output_slot: (int) output slot index of the tensor from the watched node.debug_ops: (str or list of str) name(s) of the debug op(s). Can be a list of str or a single str. The latter case is equivalent to a list of str with only one element.debug_urls: (str or list of str) URL(s) to send debug values to, e.g., file:///tmp/tfdbg_dump_1, grpc://localhost:12345.Defined in tensorflow/python/debug/lib/debug_utils.py.
© 2017 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_docs/python/tfdbg/add_debug_tensor_watch