From 8bda4ab213c52871435fc6d74ef51d16b9f3235e Mon Sep 17 00:00:00 2001 From: Qiao Longfei Date: Fri, 8 Feb 2019 18:22:50 +0800 Subject: [PATCH] parameter recv can run --- python/paddle/fluid/transpiler/distribute_transpiler.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/python/paddle/fluid/transpiler/distribute_transpiler.py b/python/paddle/fluid/transpiler/distribute_transpiler.py index ae7deda897..b9b0cd24eb 100644 --- a/python/paddle/fluid/transpiler/distribute_transpiler.py +++ b/python/paddle/fluid/transpiler/distribute_transpiler.py @@ -518,13 +518,12 @@ class DistributeTranspiler(object): self._update_remote_sparse_update_op( param_varname, height_sections, eps, table_names) else: - all_recv_outputs.extend(splited_var) - recv_varnames = [] if self.config.runtime_split_send_recv: orig_param = program.global_block().vars[param_varname] - recv_varnames = [var.name for var in splited_vars] + recv_varnames = [var.name for var in splited_var] splited_var = [orig_param] + all_recv_outputs.extend(splited_var) program.global_block().append_op( type="recv", -- GitLab