tfdbg.add_debug_tensor_watch(run_options, node_name, output_slot=0, debug_ops='DebugIdentity', debug_urls=None)

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).

Args:

  • 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.