Skip to content

Commit 3503c47

Browse files
committed
listen and serv default sync mode
1 parent 0881d80 commit 3503c47

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

paddle/fluid/operators/listen_and_serv_op.cc

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -332,8 +332,7 @@ from send_op and send back variables to recv_op.
332332
333333
"a map from grad name to it's optimize block id")
334334
.SetDefault({});
335-
AddAttr<bool>("sync_mode", "if works at sync_mode or not")
336-
.SetDefault(false);
335+
AddAttr<bool>("sync_mode", "if works at sync_mode or not").SetDefault(true);
337336
AddAttr<framework::BlockDesc *>(kOptimizeBlock,
338337
"BlockID to run on server side.");
339338
AddAttr<framework::BlockDesc *>(kPrefetchBlock,

0 commit comments

Comments
 (0)