not save ckpt when except, since resume train will increase epoch and step

pull/847/head
Hui Zhang 3 years ago
parent 431106b986
commit 56e55c2171

@ -303,7 +303,6 @@ class Trainer():
try: try:
self.train() self.train()
except KeyboardInterrupt: except KeyboardInterrupt:
self.save()
exit(-1) exit(-1)
finally: finally:
self.destory() self.destory()

Loading…
Cancel
Save