提交 6a682ee2 编写于 作者: Z zhaopu7 提交者: GitHub

Add files via upload

上级 5c1e13dd
...@@ -83,8 +83,7 @@ lm_rnn.py 中的 lm() 函数定义了模型的结构。解析如下: ...@@ -83,8 +83,7 @@ lm_rnn.py 中的 lm() 函数定义了模型的结构。解析如下:
```python ```python
# fc and output layer # fc and output layer
output = paddle.layer.fc( output = paddle.layer.fc(input=[rnn_cell], size=vocab_size, act=paddle.activation.Softmax())
input=[rnn_cell], size=vocab_size, act=paddle.activation.Softmax())
# loss # loss
cost = paddle.layer.classification_cost(input=output, label=target) cost = paddle.layer.classification_cost(input=output, label=target)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册