class_docstr: Make a ``tf.train.SessionRunHook`` into a callback.
  Note that when ``SessionRunHook.after_create_session`` is called, the ``coord`` argument will be None.
class_docstr_tok: ["Make","a","``","tf.train.SessionRunHook","``","into","a","callback",".","Note","that","when","``","SessionRunHook.after_create_session","``","is","called",",","the","``","coord","``","argument","will","be","None","."]
docstr: Args:
      hook (tf.train.SessionRunHook):
docstr_tok: ["Args",":","hook","(","tf.train.SessionRunHook",")",":"]
code: def __init__(self, hook):
      """
      Args:
          hook (tf.train.SessionRunHook):
      """
      self._hook = hook
  
imports: import tensorflow
  from ..compat import tfv1
  from ..utils.develop import HIDE_DOC
  from .base import Callback
label_desc: Use image node_id 1 to create a new HookToCallback object from inherited base classes: Callback with example: obj = HookToCallback(hook)