提交 7fbddaa6 编写于 作者: T tangwei12

bug fix

上级 cb7c1245
...@@ -365,7 +365,8 @@ class Trainer(object): ...@@ -365,7 +365,8 @@ class Trainer(object):
event_handler(BeginEpochEvent(epoch_id)) event_handler(BeginEpochEvent(epoch_id))
for step_id, data in enumerate(reader()): for step_id, data in enumerate(reader()):
if self.__stop: if self.__stop:
self._clean_checkpoint() if self.checkpoint_cfg:
self._clean_checkpoint()
return return
if self.checkpoint_cfg and self.checkpoint_cfg.load_serial \ if self.checkpoint_cfg and self.checkpoint_cfg.load_serial \
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册