From 5bfb26a8b2c252702bb140a9c146e10288ea806e Mon Sep 17 00:00:00 2001 From: JiabinYang Date: Tue, 25 Dec 2018 02:56:25 +0000 Subject: [PATCH] test=develop, fix embeding distribute and sparse can't be true and the same time --- python/paddle/fluid/layers/nn.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/python/paddle/fluid/layers/nn.py b/python/paddle/fluid/layers/nn.py index 9af62bf06fc..96ea720b9a4 100644 --- a/python/paddle/fluid/layers/nn.py +++ b/python/paddle/fluid/layers/nn.py @@ -336,7 +336,7 @@ def embedding(input, """ helper = LayerHelper('embedding', **locals()) - remote_prefetch = is_sparse + remote_prefetch = is_sparse and (not is_distributed) if remote_prefetch: assert is_sparse is True and is_distributed is False w = helper.create_parameter( -- GitLab