未验证 提交 853f2e52 编写于 作者: T tangwei12 提交者: GitHub

fix bug at sync with communicator (#23077)

上级 121b2aed
......@@ -730,7 +730,7 @@ WIKI: https://github.com/PaddlePaddle/Fleet/blob/develop/markdown_doc/transpiler
]
sections = self._get_splited_var_sections(splited_vars)
if self.config.completely_not_async:
if self.config.completely_not_async and self.trainer_num > 1:
send_varnames = [
"{}.trainer_{}".format(var.name, self.trainer_id)
for var in splited_vars
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册