parameters: (self, session=None)
docstring: Load the name-based checkpoint using a new `tf.compat.v1.train.Saver`.
docstring_summary: Load the name-based checkpoint using a new `tf.compat.v1.train.Saver`.
docstring_tokens: Load the name - based checkpoint using a new tf . compat . v1 . train . Saver .
function: def run_restore_ops(self, session=None):
      """Load the name-based checkpoint using a new `tf.compat.v1.train.Saver`."""
      if context.executing_eagerly():
        return  # Nothing to do, variables are restored on creation.
      if session is None:
        session = get_session()
      with ops.device("/cpu:0"):
        saveables = self._gather_saveable_objects()
        v1_saver_lib.Saver(saveables).restore(
            sess=session, save_path=self._checkpoint.save_path)
function_tokens: def run_restore_ops ( self , session = None ) : if context . executing_eagerly ( ) : return # Nothing to do, variables are restored on creation. if session is None : session = get_session ( ) with ops . device ( "/cpu:0" ) : saveables = self . _gather_saveable_objects ( ) v1_saver_lib . Saver ( saveables ) . restore ( sess = session , save_path = self . _checkpoint . save_path )