From bda2cff34eca1ee328054e631c0e170ede659a36 Mon Sep 17 00:00:00 2001 From: tangwei12 Date: Thu, 9 Apr 2020 10:26:00 +0800 Subject: [PATCH] fix bug at sync with communicator (#23077) (#23659) --- 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 27a74ceb5fc..11729940e16 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