class_docstr: Debug Session wrapper that dumps debug data to filesystem.
class_docstr_tok: ["Debug","Session","wrapper","that","dumps","debug","data","to","filesystem","."]
docstr: Constructor of DumpingDebugWrapperSession.
  
  Args:
    sess: The TensorFlow `Session` object being wrapped.
    session_root: (`str`) Path to the session root directory. Must be a
      directory that does not exist or an empty directory. If the directory
      does not exist, it will be created by the debugger core during debug
      `tf.Session.run`
      calls.
      As the `run()` calls occur, subdirectories will be added to
      `session_root`. The subdirectories' names has the following pattern:
        run_<epoch_time_stamp>_<zero_based_run_counter>
      E.g., run_1480734393835964_ad4c953a85444900ae79fc1b652fb324
    watch_fn: (`Callable`) A Callable that can be used to define per-run
      debug ops and watched tensors. See the doc of
      `NonInteractiveDebugWrapperSession.__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.
    pass_through_operrors: If true, all captured OpErrors will be
      propagated. By default this captures all OpErrors.
  
  Raises:
     ValueError: If `session_root` is an existing and non-empty directory or
     if `session_root` is a file.
docstr_tok: ["Constructor","of","DumpingDebugWrapperSession",".","Args",":","sess",":","The","TensorFlow","`","Session","`","object","being","wrapped",".","session_root",":","(","`","str","`",")","Path","to","the","session","root","directory",".","Must","be","a","directory","that","does","not","exist","or","an","empty","directory",".","If","the","directory","does","not","exist",",","it","will","be","created","by","the","debugger","core","during","debug","`","tf.Session.run","`","calls",".","As","the","`","run","(",")","`","calls","occur",",","subdirectories","will","be","added","to","`","session_root","`",".","The","subdirectories","'","names","has","the","following","pattern",":","run_","<","epoch_time_stamp",">","_","<","zero_based_run_counter",">","E.g.",",","run_1480734393835964_ad4c953a85444900ae79fc1b652fb324","watch_fn",":","(","`","Callable","`",")","A","Callable","that","can","be","used","to","define","per-run","debug","ops","and","watched","tensors",".","See","the","doc","of","`","NonInteractiveDebugWrapperSession.__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",".","pass_through_operrors",":","If","true",",","all","captured","OpErrors","will","be","propagated",".","By","default","this","captures","all","OpErrors",".","Raises",":","ValueError",":","If","`","session_root","`","is","an","existing","and","non-empty","directory","or","if","`","session_root","`","is","a","file","."]
code: def __init__(
      self,
      sess,
      session_root,
      watch_fn=None,
      thread_name_filter=None,
      pass_through_operrors=None,
  ):
      """Constructor of DumpingDebugWrapperSession.
  
      Args:
        sess: The TensorFlow `Session` object being wrapped.
        session_root: (`str`) Path to the session root directory. Must be a
          directory that does not exist or an empty directory. If the directory
          does not exist, it will be created by the debugger core during debug
          `tf.Session.run`
          calls.
          As the `run()` calls occur, subdirectories will be added to
          `session_root`. The subdirectories' names has the following pattern:
            run_<epoch_time_stamp>_<zero_based_run_counter>
          E.g., run_1480734393835964_ad4c953a85444900ae79fc1b652fb324
        watch_fn: (`Callable`) A Callable that can be used to define per-run
          debug ops and watched tensors. See the doc of
          `NonInteractiveDebugWrapperSession.__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.
        pass_through_operrors: If true, all captured OpErrors will be
          propagated. By default this captures all OpErrors.
  
      Raises:
         ValueError: If `session_root` is an existing and non-empty directory or
         if `session_root` is a file.
      """
      framework.NonInteractiveDebugWrapperSession.__init__(
          self,
          sess,
          watch_fn=watch_fn,
          thread_name_filter=thread_name_filter,
          pass_through_operrors=pass_through_operrors,
      )
  
      session_root = os.path.expanduser(session_root)
      if gfile.Exists(session_root):
          if not gfile.IsDirectory(session_root):
              raise ValueError(
                  "session_root path points to a file: %s"
                  % session_root
              )
          elif gfile.ListDirectory(session_root):
              raise ValueError(
                  "session_root path points to a non-empty directory: %s"
                  % session_root
              )
      else:
          gfile.MakeDirs(session_root)
      self._session_root = session_root
  
      self._run_counter = 0
      self._run_counter_lock = threading.Lock()
  
file_path: tensorflow/tensorflow/python/debug/wrappers/dumping_wrapper.py
imports: import os
  import threading
  import time
  from tensorflow.core.util import event_pb2
  from tensorflow.python.debug.lib import debug_data
  from tensorflow.python.debug.wrappers import framework
  from tensorflow.python.platform import gfile
label_desc: Use image node_id 1 to create a new DumpingDebugWrapperSession object from inherited base classes: framework with example: obj = DumpingDebugWrapperSession(sess, session_root, watch_fn, thread_name_filter, pass_through_operrors)