From 08fbab9429528a5c25d9fa75b311f90da98b916f Mon Sep 17 00:00:00 2001 From: qiaolongfei Date: Thu, 26 Apr 2018 19:27:53 +0800 Subject: [PATCH] complete ListenAndServ layer in layers/io.py --- python/paddle/fluid/layers/io.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/python/paddle/fluid/layers/io.py b/python/paddle/fluid/layers/io.py index cc71c2136a6..e8eff33bd17 100644 --- a/python/paddle/fluid/layers/io.py +++ b/python/paddle/fluid/layers/io.py @@ -168,7 +168,9 @@ class ListenAndServ(object): 'endpoint': self.endpoint, 'Fanin': self.fan_in, 'OptimizeBlock': current_block, - 'PrefetchBlock': empty_block + 'PrefetchBlock': empty_block, + 'sync_mode': True, # did not support async now in layers + 'grad_to_block_id': [] }) -- GitLab