Skip to content

Commit

Permalink
ignore saver error
Browse files Browse the repository at this point in the history
  • Loading branch information
ppwwyyxx committed Oct 13, 2020
1 parent 2edcf10 commit 0e69750
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion tensorpack/callbacks/saver.py
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,8 @@ def _trigger(self):
write_meta_graph=False)
logger.info("Model saved to %s." % tf.train.get_checkpoint_state(self.checkpoint_dir).model_checkpoint_path)
except (IOError, tf.errors.PermissionDeniedError,
tf.errors.ResourceExhaustedError): # disk error sometimes.. just ignore it
tf.errors.ResourceExhaustedError,
tf.errors.AlreadyExistsError): # disk error sometimes.. just ignore it
logger.exception("Exception in ModelSaver!")


Expand Down

0 comments on commit 0e69750

Please sign in to comment.