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:
self.train()
except KeyboardInterrupt:
self.save()
exit(-1)
finally:
self.destory()

Loading…
Cancel
Save