parameters: (self, step, session)
docstring: Saves the latest checkpoint.
docstring_summary: Saves the latest checkpoint.
docstring_tokens: Saves the latest checkpoint .
function: def _save(self, step, session):
      """Saves the latest checkpoint."""
      if step == self._last_saved_step:
        return
      logging.info("Saving checkpoints for %d into %s.", step, self._save_path)
      self._last_saved_time = time.time()
      self._last_saved_step = step
      if self._saver is None:
        self._scaffold.saver.save(session, self._save_path, global_step=step)
      else:
        self._saver.save(session, self._save_path, global_step=step)
      self._summary_writer.add_session_log(
          SessionLog(
              status=SessionLog.CHECKPOINT, checkpoint_path=self._save_path),
          step)
function_tokens: def _save ( self , step , session ) : if step == self . _last_saved_step : return logging . info ( "Saving checkpoints for %d into %s." , step , self . _save_path ) self . _last_saved_time = time . time ( ) self . _last_saved_step = step if self . _saver is None : self . _scaffold . saver . save ( session , self . _save_path , global_step = step ) else : self . _saver . save ( session , self . _save_path , global_step = step ) self . _summary_writer . add_session_log ( SessionLog ( status = SessionLog . CHECKPOINT , checkpoint_path = self . _save_path ) , step )