class_docstr: A hook that streams debugger-related events to any grpc_debug_server.
  
  For example, the debugger data server is a grpc_debug_server. The debugger
  data server writes debugger-related events it receives via GRPC to logdir.
  This enables debugging features in Tensorboard such as health pills.
  
  When the arguments of debug_utils.watch_graph changes, strongly consider
  changing arguments here too so that features are available to tflearn users.
  
  Can be used as a hook for `tf.compat.v1.train.MonitoredSession`s and
  `tf.estimator.Estimator`s.
class_docstr_tok: ["A","hook","that","streams","debugger-related","events","to","any","grpc_debug_server",".","For","example",",","the","debugger","data","server","is","a","grpc_debug_server",".","The","debugger","data","server","writes","debugger-related","events","it","receives","via","GRPC","to","logdir",".","This","enables","debugging","features","in","Tensorboard","such","as","health","pills",".","When","the","arguments","of","debug_utils.watch_graph","changes",",","strongly","consider","changing","arguments","here","too","so","that","features","are","available","to","tflearn","users",".","Can","be","used","as","a","hook","for","`","tf.compat.v1.train.MonitoredSession","`","s","and","`","tf.estimator.Estimator","`","s","."]
docstr: Constructs a GrpcDebugHook.
  
  Args:
    grpc_debug_server_addresses: (`list` of `str`) A list of the gRPC debug
      server addresses, in the format of <host:port>, with or without the
      "grpc://" prefix. For example: ["localhost:7000", "192.168.0.2:8000"]
    watch_fn: A function that allows for customizing which ops to watch at
      which specific steps. See doc of
      `dumping_wrapper.DumpingDebugWrapperSession.__init__` for details.
    thread_name_filter: Regular-expression white list for threads on which the
      wrapper session will be active. See doc of `BaseDebugWrapperSession` for
      more details.
docstr_tok: ["Constructs","a","GrpcDebugHook",".","Args",":","grpc_debug_server_addresses",":","(","`","list","`","of","`","str","`",")","A","list","of","the","gRPC","debug","server","addresses",",","in","the","format","of","<","host",":","port",">",",","with","or","without","the","``","grpc",":","\/\/","''","prefix",".","For","example",":","[","``","localhost:7000","''",",","``","192.168.0.2:8000","''","]","watch_fn",":","A","function","that","allows","for","customizing","which","ops","to","watch","at","which","specific","steps",".","See","doc","of","`","dumping_wrapper.DumpingDebugWrapperSession.__init__","`","for","details",".","thread_name_filter",":","Regular-expression","white","list","for","threads","on","which","the","wrapper","session","will","be","active",".","See","doc","of","`","BaseDebugWrapperSession","`","for","more","details","."]
code: def __init__(
      self,
      grpc_debug_server_addresses,
      watch_fn=None,
      thread_name_filter=None,
  ):
      """Constructs a GrpcDebugHook.
  
      Args:
        grpc_debug_server_addresses: (`list` of `str`) A list of the gRPC debug
          server addresses, in the format of <host:port>, with or without the
          "grpc://" prefix. For example: ["localhost:7000", "192.168.0.2:8000"]
        watch_fn: A function that allows for customizing which ops to watch at
          which specific steps. See doc of
          `dumping_wrapper.DumpingDebugWrapperSession.__init__` for details.
        thread_name_filter: Regular-expression white list for threads on which the
          wrapper session will be active. See doc of `BaseDebugWrapperSession` for
          more details.
      """
      self._grpc_debug_wrapper_session = None
      self._thread_name_filter = thread_name_filter
      self._grpc_debug_server_addresses = (
          grpc_debug_server_addresses
          if isinstance(grpc_debug_server_addresses, list)
          else [grpc_debug_server_addresses]
      )
  
      self._watch_fn = watch_fn
  
imports: from tensorflow.core.protobuf import config_pb2
  from tensorflow.python.debug.lib import debug_utils
  from tensorflow.python.debug.wrappers import dumping_wrapper
  from tensorflow.python.debug.wrappers import framework
  from tensorflow.python.debug.wrappers import grpc_wrapper
  from tensorflow.python.debug.wrappers import local_cli_wrapper
  from tensorflow.python.training import session_run_hook
label_desc: Use image node_id 1 to create a new GrpcDebugHook object from inherited base classes: session_run_hook with example: obj = GrpcDebugHook(grpc_debug_server_addresses, watch_fn, thread_name_filter)