From 4778c6e21c6918535b648b9c9bc55e9f0ba56e99 Mon Sep 17 00:00:00 2001 From: Yancey1989 Date: Thu, 13 Sep 2018 10:45:27 +0800 Subject: [PATCH] delete unused py codes --- python/paddle/fluid/parallel_executor.py | 5 ----- 1 file changed, 5 deletions(-) diff --git a/python/paddle/fluid/parallel_executor.py b/python/paddle/fluid/parallel_executor.py index a6395d9e207..44af29d3390 100644 --- a/python/paddle/fluid/parallel_executor.py +++ b/python/paddle/fluid/parallel_executor.py @@ -142,11 +142,6 @@ class ParallelExecutor(object): main = main if main else framework.default_main_program() if scope == None: scope = executor.global_scope() - # FIXME(Yancey1989): it's a temporary approach to determinate the distribute - # train program, call self.bcast_param() at the end of each mini-batch. - self.is_dist = True if "recv" in [ - op.type for op in main.global_block().ops - ] else False if share_vars_from and not isinstance(share_vars_from, ParallelExecutor): -- GitLab