From 552cfe47beec913c6c3a4a2e02e1c3703823a55e Mon Sep 17 00:00:00 2001 From: Shan Yi <35982308+shanyi15@users.noreply.github.com> Date: Wed, 21 Mar 2018 09:14:12 +0800 Subject: [PATCH 1/4] repair image link in rnn.md change the path of image code --- doc/fluid/design/dynamic_rnn/rnn.md | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/doc/fluid/design/dynamic_rnn/rnn.md b/doc/fluid/design/dynamic_rnn/rnn.md index 2f4854793f..e8c8b71e49 100644 --- a/doc/fluid/design/dynamic_rnn/rnn.md +++ b/doc/fluid/design/dynamic_rnn/rnn.md @@ -5,7 +5,7 @@ This document describes the RNN (Recurrent Neural Network) operator and how it i ## RNN Algorithm Implementation <p align="center"> -<img src="./images/rnn.jpg"/> +<img src="./rnn.jpg"/> </p> The above diagram shows an RNN unrolled into a full network. @@ -22,7 +22,7 @@ There are several important concepts here: There could be local variables defined in each step-net. PaddlePaddle runtime realizes these variables in *step-scopes* which are created for each step. <p align="center"> -<img src="./images/rnn.png"/><br/> +<img src="./rnn.png"/><br/> Figure 2 illustrates the RNN's data flow </p> @@ -93,7 +93,7 @@ For example, we could have a 2-level RNN, where the top level corresponds to par The following figure illustrates feeding in text into the lower level, one sentence at a step, and the feeding in step outputs to the top level. The final top level output is about the whole text. <p align="center"> -<img src="./images/2_level_rnn.png"/> +<img src="./2_level_rnn.png"/> </p> ```python @@ -149,5 +149,5 @@ If the `output_all_steps` is set to False, it will only output the final time st <p align="center"> -<img src="images/rnn_2level_data.png"/> +<img src="rnn_2level_data.png"/> </p> From 4be675bcbf34b23b95f30dee9f84d57056f02d08 Mon Sep 17 00:00:00 2001 From: Shan Yi <35982308+shanyi15@users.noreply.github.com> Date: Wed, 21 Mar 2018 09:15:32 +0800 Subject: [PATCH 2/4] polish --- doc/fluid/design/dynamic_rnn/rnn.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/doc/fluid/design/dynamic_rnn/rnn.md b/doc/fluid/design/dynamic_rnn/rnn.md index e8c8b71e49..3e7f38d2d6 100644 --- a/doc/fluid/design/dynamic_rnn/rnn.md +++ b/doc/fluid/design/dynamic_rnn/rnn.md @@ -149,5 +149,5 @@ If the `output_all_steps` is set to False, it will only output the final time st <p align="center"> -<img src="rnn_2level_data.png"/> +<img src="/rnn_2level_data.png"/> </p> From 784e3302663b83484d0117101cb28211a31e335e Mon Sep 17 00:00:00 2001 From: Shan Yi <35982308+shanyi15@users.noreply.github.com> Date: Wed, 21 Mar 2018 09:21:33 +0800 Subject: [PATCH 3/4] repair deadlink --- doc/fluid/design/dynamic_rnn/rnn.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/doc/fluid/design/dynamic_rnn/rnn.md b/doc/fluid/design/dynamic_rnn/rnn.md index 3e7f38d2d6..cca2e69710 100644 --- a/doc/fluid/design/dynamic_rnn/rnn.md +++ b/doc/fluid/design/dynamic_rnn/rnn.md @@ -49,7 +49,7 @@ or copy the memory value of the previous step to the current ex-memory variable. ### Usage in Python -For more information on Block, please refer to the [design doc](https://github.com/PaddlePaddle/Paddle/blob/develop/doc/design/block.md). +For more information on Block, please refer to the [design doc](https://github.com/PaddlePaddle/Paddle/blob/develop/doc/fluid/design/concepts/block.md). We can define an RNN's step-net using a Block: From c55bff79697a9f05a903f65a09ac443b6b98aea0 Mon Sep 17 00:00:00 2001 From: Shan Yi <35982308+shanyi15@users.noreply.github.com> Date: Wed, 21 Mar 2018 10:30:08 +0800 Subject: [PATCH 4/4] modify error --- doc/fluid/design/dynamic_rnn/rnn.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/doc/fluid/design/dynamic_rnn/rnn.md b/doc/fluid/design/dynamic_rnn/rnn.md index cca2e69710..6f414e5549 100644 --- a/doc/fluid/design/dynamic_rnn/rnn.md +++ b/doc/fluid/design/dynamic_rnn/rnn.md @@ -149,5 +149,5 @@ If the `output_all_steps` is set to False, it will only output the final time st <p align="center"> -<img src="/rnn_2level_data.png"/> +<img src="./rnn_2level_data.png"/> </p>