Exemple #1
0
 def load(self):
   # TODO: when save_model option is turned off and the user want to
   #   try loading the exist model, set overwrite to False
   if not hub.save_model and hub.overwrite: return False, 0, None
   return load_checkpoint(self.ckpt_dir, self.session, self._saver)
Exemple #2
0
 def _load(self):
     return load_checkpoint(self.ckpt_dir, self._session, self._saver)