class_docstr: Apply a function on the output of a SessionCreator. Can be used to create a debug session.
  
  Note:
  Since TF 1.6, debug session may not work properly with Monitored session.
  This is a tensorflow bug. To use tfdbg, use the :class:`TFLocalCLIDebugHook` callback instead.
class_docstr_tok: ["Apply","a","function","on","the","output","of","a","SessionCreator",".","Can","be","used","to","create","a","debug","session",".","Note",":","Since","TF","1.6",",","debug","session","may","not","work","properly","with","Monitored","session",".","This","is","a","tensorflow","bug",".","To","use","tfdbg",",","use","the",":","class",":","`","TFLocalCLIDebugHook","`","callback","instead","."]
docstr: Args:
      session_creator (tf.train.SessionCreator): a session creator
      func (tf.Session -> tf.Session): takes a session created by
      ``session_creator``, and return a new session to be returned by ``self.create_session``
docstr_tok: ["Args",":","session_creator","(","tf.train.SessionCreator",")",":","a","session","creator","func","(","tf.Session","-",">","tf.Session",")",":","takes","a","session","created","by","``","session_creator","``",",","and","return","a","new","session","to","be","returned","by","``","self.create_session","``"]
code: def __init__(self, session_creator, func):
      """
      Args:
          session_creator (tf.train.SessionCreator): a session creator
          func (tf.Session -> tf.Session): takes a session created by
          ``session_creator``, and return a new session to be returned by ``self.create_session``
      """
      self._creator = session_creator
      self._func = func
  
file_path: tensorpack/tensorpack/tfutils/sesscreate.py
imports: from ..compat import tfv1
  from ..utils import logger
  from .common import get_default_sess_config
label_desc: Use image node_id 1 to create a new SessionCreatorAdapter object from inherited base classes: tf.train with example: obj = SessionCreatorAdapter(session_creator, func)