Skip to content

Commit 81374eb

Browse files
author
chengduo
authored
Merge pull request #8644 from chengduoZH/doc/FAQ_refine
refine FQA doc
2 parents 69643b5 + 6019aba commit 81374eb

File tree

4 files changed

+15
-13
lines changed

4 files changed

+15
-13
lines changed

doc/faq/build_and_install/index_cn.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
$ export DEVICES=$(\ls /dev/nvidia* | xargs -I{} echo '--device {}:{}')
1717
$ docker run ${CUDA_SO} ${DEVICES} -it paddlepaddle/paddle:latest-gpu
1818
19-
更多关于Docker的安装与使用, 请参考 `PaddlePaddle Docker 文档 <http://www.paddlepaddle.org/doc_cn/build_and_install/install/docker_install.html>`_ 。
19+
更多关于Docker的安装与使用, 请参考 `PaddlePaddle Docker 文档 <http://www.paddlepaddle.org/docs/0.11.0/documentation/zh/getstarted/build_and_install/docker_install_cn.html>`_ 。
2020

2121

2222
2. CMake源码编译, 找到的PythonLibs和PythonInterp版本不一致

doc/faq/index_cn.rst

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
FAQ
22
====
33

4+
本文档对关于PaddlePaddle的一些常见问题提供了解答。如果您的问题未在此处,请您到 `PaddlePaddle社区 <https://github.com/PaddlePaddle/Paddle/issues>`_ 查找答案或直接提 `issue <https://github.com/PaddlePaddle/Paddle/issues/new>`_ ,我们会及时进行回复。
5+
46
.. toctree::
57
:maxdepth: 1
68

doc/faq/local/index_cn.rst

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -148,24 +148,24 @@ Paddle二进制在运行时捕获了浮点数异常,只要出现浮点数异
148148

149149
.. code-block:: python
150150
151-
optimizer = paddle.optimizer.RMSProp(
152-
learning_rate=1e-3,
153-
gradient_clipping_threshold=10.0,
154-
regularization=paddle.optimizer.L2Regularization(rate=8e-4))
151+
optimizer = paddle.optimizer.RMSProp(
152+
learning_rate=1e-3,
153+
gradient_clipping_threshold=10.0,
154+
regularization=paddle.optimizer.L2Regularization(rate=8e-4))
155155
156156
具体可以参考 `nmt_without_attention <https://github.com/PaddlePaddle/models/blob/develop/nmt_without_attention/train.py#L35>`_ 示例。
157157

158158
2. 设置 :code:`error_clipping_threshold` 参数,示例代码如下:
159159

160160
.. code-block:: python
161161
162-
decoder_inputs = paddle.layer.fc(
163-
act=paddle.activation.Linear(),
164-
size=decoder_size * 3,
165-
bias_attr=False,
166-
input=[context, current_word],
167-
layer_attr=paddle.attr.ExtraLayerAttribute(
168-
error_clipping_threshold=100.0))
162+
decoder_inputs = paddle.layer.fc(
163+
act=paddle.activation.Linear(),
164+
size=decoder_size * 3,
165+
bias_attr=False,
166+
input=[context, current_word],
167+
layer_attr=paddle.attr.ExtraLayerAttribute(
168+
error_clipping_threshold=100.0))
169169
170170
完整代码可以参考示例 `machine translation <https://github.com/PaddlePaddle/book/blob/develop/08.machine_translation/train.py#L66>`_ 。
171171

doc/faq/parameter/index_cn.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -196,6 +196,6 @@ PaddlePaddle保存的模型参数文件内容由16字节头信息和网络参数
196196
obj="process",
197197
args={"src_dict_path": src_dict_path})
198198
199-
完整源码可参考 `seqToseq <https://github.com/PaddlePaddle/Paddle/tree/develop/demo/seqToseq>`_ 示例。
199+
完整源码可参考 `sequence_recurrent <https://github.com/PaddlePaddle/Paddle/blob/develop/paddle/gserver/tests/sequence_recurrent.py>`_ 示例。
200200

201201

0 commit comments

Comments
 (0)