class_docstr: A tfdbg Session wrapper that can be used with TensorBoard Debugger Plugin.
  
  This wrapper is the same as `GrpcDebugWrapperSession`, except that it uses a
    predefined `watch_fn` that
    1) uses `DebugIdentity` debug ops with the `gated_grpc` attribute set to
        `True` to allow the interactive enabling and disabling of tensor
       breakpoints.
    2) watches all tensors in the graph.
  This saves the need for the user to define a `watch_fn`.
class_docstr_tok: ["A","tfdbg","Session","wrapper","that","can","be","used","with","TensorBoard","Debugger","Plugin",".","This","wrapper","is","the","same","as","`","GrpcDebugWrapperSession","`",",","except","that","it","uses","a","predefined","`","watch_fn","`","that","1",")","uses","`","DebugIdentity","`","debug","ops","with","the","`","gated_grpc","`","attribute","set","to","`","True","`","to","allow","the","interactive","enabling","and","disabling","of","tensor","breakpoints",".","2",")","watches","all","tensors","in","the","graph",".","This","saves","the","need","for","the","user","to","define","a","`","watch_fn","`","."]
docstr: Constructor of TensorBoardDebugWrapperSession.
  
  Args:
    sess: The `tf.compat.v1.Session` instance to be wrapped.
    grpc_debug_server_addresses: gRPC address(es) of debug server(s), as a
      `str` or a `list` of `str`s. E.g., "localhost:2333",
      "grpc://localhost:2333", ["192.168.0.7:2333", "192.168.0.8:2333"].
    thread_name_filter: Optional filter for thread names.
    send_traceback_and_source_code: Whether traceback of graph elements and
      the source code are to be sent to the debug server(s).
docstr_tok: ["Constructor","of","TensorBoardDebugWrapperSession",".","Args",":","sess",":","The","`","tf.compat.v1.Session","`","instance","to","be","wrapped",".","grpc_debug_server_addresses",":","gRPC","address","(","es",")","of","debug","server","(","s",")",",","as","a","`","str","`","or","a","`","list","`","of","`","str","`","s",".","E.g.",",","``","localhost:2333","''",",","``","grpc",":","\/\/localhost:2333","''",",","[","``","192.168.0.7:2333","''",",","``","192.168.0.8:2333","''","]",".","thread_name_filter",":","Optional","filter","for","thread","names",".","send_traceback_and_source_code",":","Whether","traceback","of","graph","elements","and","the","source","code","are","to","be","sent","to","the","debug","server","(","s",")","."]
code: def __init__(
      self,
      sess,
      grpc_debug_server_addresses,
      thread_name_filter=None,
      send_traceback_and_source_code=True,
  ):
      """Constructor of TensorBoardDebugWrapperSession.
  
      Args:
        sess: The `tf.compat.v1.Session` instance to be wrapped.
        grpc_debug_server_addresses: gRPC address(es) of debug server(s), as a
          `str` or a `list` of `str`s. E.g., "localhost:2333",
          "grpc://localhost:2333", ["192.168.0.7:2333", "192.168.0.8:2333"].
        thread_name_filter: Optional filter for thread names.
        send_traceback_and_source_code: Whether traceback of graph elements and
          the source code are to be sent to the debug server(s).
      """
  
      def _gated_grpc_watch_fn(fetches, feeds):
          del fetches, feeds  # Unused.
          return framework.WatchOptions(
              debug_ops=["DebugIdentity(gated_grpc=true)"]
          )
  
      super().__init__(
          sess,
          grpc_debug_server_addresses,
          watch_fn=_gated_grpc_watch_fn,
          thread_name_filter=thread_name_filter,
      )
  
      self._send_traceback_and_source_code = (
          send_traceback_and_source_code
      )
      # Keeps track of the latest version of Python graph object that has been
      # sent to the debug servers.
      self._sent_graph_version = -1
  
      register_signal_handler()
  
file_path: tensorflow/tensorflow/python/debug/wrappers/grpc_wrapper.py
imports: import signal
  import sys
  import traceback
  from tensorflow.python.debug.lib import common
  from tensorflow.python.debug.wrappers import framework
label_desc: Use image node_id 1 to create a new TensorBoardDebugWrapperSession object from inherited base classes: GrpcDebugWrapperSession with example: obj = TensorBoardDebugWrapperSession(sess, grpc_debug_server_addresses, thread_name_filter, send_traceback_and_source_code)