From ef56e6839a9f084f27a2857f18eaed24f317b943 Mon Sep 17 00:00:00 2001 From: Yibing Liu Date: Thu, 18 Jan 2018 05:02:15 -0800 Subject: [PATCH] Correct the usage of fc in the example of dynamic_lstm's doc --- python/paddle/v2/fluid/layers/nn.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/python/paddle/v2/fluid/layers/nn.py b/python/paddle/v2/fluid/layers/nn.py index ebcc914f6..7cf373539 100644 --- a/python/paddle/v2/fluid/layers/nn.py +++ b/python/paddle/v2/fluid/layers/nn.py @@ -321,7 +321,7 @@ def dynamic_lstm(input, hidden_dim = 512 forward_proj = fluid.layers.fc(input=input_seq, size=hidden_dim * 4, - act='tanh', bias_attr=True) + act=None, bias_attr=None) forward, _ = fluid.layers.dynamic_lstm( input=forward_proj, size=hidden_dim * 4, use_peepholes=False) """ -- GitLab