Skip to content

Commit ef56e68

Browse files
author
Yibing Liu
committed
Correct the usage of fc in the example of dynamic_lstm's doc
1 parent 3b0eff6 commit ef56e68

File tree

1 file changed

+1
-1
lines changed
  • python/paddle/v2/fluid/layers

1 file changed

+1
-1
lines changed

python/paddle/v2/fluid/layers/nn.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -321,7 +321,7 @@ def dynamic_lstm(input,
321321
322322
hidden_dim = 512
323323
forward_proj = fluid.layers.fc(input=input_seq, size=hidden_dim * 4,
324-
act='tanh', bias_attr=True)
324+
act=None, bias_attr=None)
325325
forward, _ = fluid.layers.dynamic_lstm(
326326
input=forward_proj, size=hidden_dim * 4, use_peepholes=False)
327327
"""

0 commit comments

Comments
 (0)