@@ -5,7 +5,7 @@ This document describes the RNN (Recurrent Neural Network) operator and how it i
...
@@ -5,7 +5,7 @@ This document describes the RNN (Recurrent Neural Network) operator and how it i
## RNN Algorithm Implementation
## RNN Algorithm Implementation
<palign="center">
<palign="center">
<imgsrc="./images/rnn.jpg"/>
<imgsrc="./rnn.jpg"/>
</p>
</p>
The above diagram shows an RNN unrolled into a full network.
The above diagram shows an RNN unrolled into a full network.
...
@@ -22,7 +22,7 @@ There are several important concepts here:
...
@@ -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.
There could be local variables defined in each step-net. PaddlePaddle runtime realizes these variables in *step-scopes* which are created for each step.
<palign="center">
<palign="center">
<imgsrc="./images/rnn.png"/><br/>
<imgsrc="./rnn.png"/><br/>
Figure 2 illustrates the RNN's data flow
Figure 2 illustrates the RNN's data flow
</p>
</p>
...
@@ -93,7 +93,7 @@ For example, we could have a 2-level RNN, where the top level corresponds to par
...
@@ -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.
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.
<palign="center">
<palign="center">
<imgsrc="./images/2_level_rnn.png"/>
<imgsrc="./2_level_rnn.png"/>
</p>
</p>
```python
```python
...
@@ -149,5 +149,5 @@ If the `output_all_steps` is set to False, it will only output the final time st
...
@@ -149,5 +149,5 @@ If the `output_all_steps` is set to False, it will only output the final time st