提交 b3a4f946 编写于 作者: Y yaoxuefeng

bug fix

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