class_docstr: Command-line-interface debugger hook.
  
  Can be used as a hook for `tf.compat.v1.train.MonitoredSession`s and
  `tf.estimator.Estimator`s. Provides a substitute for
  `tfdbg.LocalCLIDebugWrapperSession` in cases where the session is not directly
  available.
class_docstr_tok: ["Command-line-interface","debugger","hook",".","Can","be","used","as","a","hook","for","`","tf.compat.v1.train.MonitoredSession","`","s","and","`","tf.estimator.Estimator","`","s",".","Provides","a","substitute","for","`","tfdbg.LocalCLIDebugWrapperSession","`","in","cases","where","the","session","is","not","directly","available","."]
docstr: Add a tensor filter.
  
  See doc of `LocalCLIDebugWrapperSession.add_tensor_filter()` for details.
  Override default behavior to accommodate the possibility of this method
  being
  called prior to the initialization of the underlying
  `LocalCLIDebugWrapperSession` object.
  
  Args:
    filter_name: See doc of `LocalCLIDebugWrapperSession.add_tensor_filter()`
      for details.
    tensor_filter: See doc of
      `LocalCLIDebugWrapperSession.add_tensor_filter()` for details.
docstr_tok: ["Add","a","tensor","filter",".","See","doc","of","`","LocalCLIDebugWrapperSession.add_tensor_filter","(",")","`","for","details",".","Override","default","behavior","to","accommodate","the","possibility","of","this","method","being","called","prior","to","the","initialization","of","the","underlying","`","LocalCLIDebugWrapperSession","`","object",".","Args",":","filter_name",":","See","doc","of","`","LocalCLIDebugWrapperSession.add_tensor_filter","(",")","`","for","details",".","tensor_filter",":","See","doc","of","`","LocalCLIDebugWrapperSession.add_tensor_filter","(",")","`","for","details","."]
code: def add_tensor_filter(self, filter_name, tensor_filter):
      """Add a tensor filter.
  
      See doc of `LocalCLIDebugWrapperSession.add_tensor_filter()` for details.
      Override default behavior to accommodate the possibility of this method
      being
      called prior to the initialization of the underlying
      `LocalCLIDebugWrapperSession` object.
  
      Args:
        filter_name: See doc of `LocalCLIDebugWrapperSession.add_tensor_filter()`
          for details.
        tensor_filter: See doc of
          `LocalCLIDebugWrapperSession.add_tensor_filter()` for details.
      """
  
      if self._session_wrapper:
          self._session_wrapper.add_tensor_filter(
              filter_name, tensor_filter
          )
      else:
          self._pending_tensor_filters[filter_name] = tensor_filter
  
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 2 for calling the LocalCLIDebugHook obj's underlying member method code with example usage: obj.add_tensor_filter(filter_name, tensor_filter) without return types