fix bug at sync with communicator (#23077)

revert-23830-2.0-beta
tangwei12 5 years ago committed by GitHub
parent 121b2aed4d
commit 853f2e5272
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -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

Loading…
Cancel
Save