From 2f1b3afa6fc3c82fa76a3b45f7f1b37e749bdab3 Mon Sep 17 00:00:00 2001 From: chengduo Date: Sat, 9 Mar 2019 07:21:41 -0600 Subject: [PATCH] fix compiler_py bug (#16122) test=develop --- python/paddle/fluid/compiler.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/python/paddle/fluid/compiler.py b/python/paddle/fluid/compiler.py index c568f9d25..444148109 100644 --- a/python/paddle/fluid/compiler.py +++ b/python/paddle/fluid/compiler.py @@ -37,7 +37,7 @@ def _place_obj(place): def _is_pserver_mode(main_program): main = main_program if main_program \ - else default_main_program() + else framework.default_main_program() for op in main.global_block().ops: if op.type in ["send", "recv"]: return True -- GitLab