fix compiler_py bug (#16122)

test=develop
revert-16045-imperative_remove_desc
chengduo 6 years ago committed by GitHub
parent db120b9392
commit 2f1b3afa6f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -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

Loading…
Cancel
Save