From 853f2e5272ce3a52cf96c818d64c8274307be8d0 Mon Sep 17 00:00:00 2001 From: tangwei12 Date: Wed, 18 Mar 2020 21:19:41 +0800 Subject: [PATCH] fix bug at sync with communicator (#23077) --- python/paddle/fluid/transpiler/distribute_transpiler.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/python/paddle/fluid/transpiler/distribute_transpiler.py b/python/paddle/fluid/transpiler/distribute_transpiler.py index 27a74ceb5f..11729940e1 100644 --- a/python/paddle/fluid/transpiler/distribute_transpiler.py +++ b/python/paddle/fluid/transpiler/distribute_transpiler.py @@ -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 -- GitLab