提交 19ddd3da 编写于 作者: T tangwei12

hidden slice_vars in distribute transpile, hidden it to users

上级 57a1d183
...@@ -288,7 +288,7 @@ class Trainer(object): ...@@ -288,7 +288,7 @@ class Trainer(object):
_load_persistable_vars(exe, param_path, self.startup_program, False, _load_persistable_vars(exe, param_path, self.startup_program, False,
[self.lookup_table_name] [self.lookup_table_name]
if self.lookup_table_name else []) if self.lookup_table_name else [])
if self.lookup_table_name and self.pserver_id: if self.lookup_table_name and self.pserver_id is not None:
_load_lookup_table_vars(exe, param_path, self.startup_program, _load_lookup_table_vars(exe, param_path, self.startup_program,
self.pserver_id, self.lookup_table_name) self.pserver_id, self.lookup_table_name)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册