From 3503c47f9a733390f17aa4d027275291d714b02a Mon Sep 17 00:00:00 2001 From: qiaolongfei Date: Mon, 23 Apr 2018 22:59:49 +0800 Subject: [PATCH] listen and serv default sync mode --- paddle/fluid/operators/listen_and_serv_op.cc | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/paddle/fluid/operators/listen_and_serv_op.cc b/paddle/fluid/operators/listen_and_serv_op.cc index bf351a2f5..3ee642ded 100644 --- a/paddle/fluid/operators/listen_and_serv_op.cc +++ b/paddle/fluid/operators/listen_and_serv_op.cc @@ -332,8 +332,7 @@ from send_op and send back variables to recv_op. "['param1@GRAD.block0:1', 'param2@GRAD.blockn:2'] " "a map from grad name to it's optimize block id") .SetDefault({}); - AddAttr("sync_mode", "if works at sync_mode or not") - .SetDefault(false); + AddAttr("sync_mode", "if works at sync_mode or not").SetDefault(true); AddAttr(kOptimizeBlock, "BlockID to run on server side."); AddAttr(kPrefetchBlock, -- GitLab