未验证 提交 2f7966f2 编写于 作者: K kinghuin 提交者: GitHub

fix incremental steps (#588)

上级 7240945e
......@@ -832,7 +832,9 @@ class BaseTask(object):
self.config.checkpoint_dir,
self.exe,
main_program=self.main_program)
# Revise max_train_steps when incremental training
self.max_train_steps = self.env.current_step + self.max_train_steps / self.config.num_epoch * (
self.config.num_epoch - self.env.current_epoch + 1)
return is_load_successful
def load_parameters(self, dirname):
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册