未验证 提交 3ae97aab 编写于 作者: C chengduo 提交者: GitHub

fix trainer load parameters (#12816)

上级 8f9f414a
......@@ -285,6 +285,7 @@ class Trainer(object):
self._load_checkpoint()
if param_path and os.path.isdir(param_path):
with self._prog_and_scope_guard():
# load params from param_path into scope
io.load_persistables(
executor=exe,
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册