提交 b3a4f946 编写于 作者: Y yaoxuefeng

bug fix

上级 fec24e9f
......@@ -328,7 +328,7 @@ class SingleTrainer(TranspileTrainer):
if is_fleet:
fleet.load_persistables(self._exe, dirname)
else:
if load_vars is None or dirname == "":
if load_vars is None or len(load_vars) == 0:
fluid.io.load_persistables(self._exe, dirname)
else:
fluid.io.load_vars(
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册