Skip to content

Commit

Permalink
fix docstring
Browse files Browse the repository at this point in the history
  • Loading branch information
chenfeiyu committed Aug 25, 2020
1 parent a6fd466 commit 565ddb9
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions python/paddle/nn/layer/rnn.py
Original file line number Diff line number Diff line change
Expand Up @@ -288,7 +288,9 @@ class SimpleRNNCell(RNNCellBase):
None). For more information, please refer to :ref:`api_guide_Name`.
Examples:
.. code-block:: python
import paddle
paddle.disable_static()
Expand Down Expand Up @@ -413,6 +415,7 @@ class LSTMCell(RNNCellBase):
None). For more information, please refer to :ref:`api_guide_Name`.
Examples:
.. code-block:: python
import paddle
Expand Down Expand Up @@ -546,6 +549,7 @@ class GRUCell(RNNCellBase):
None). For more information, please refer to :ref:`api_guide_Name`.
Examples:
.. code-block:: python
import paddle
Expand Down Expand Up @@ -688,6 +692,7 @@ class RNN(Layer):
shape and dtype as the corresponding tensor in initial states.
Examples:
.. code-block:: python
import paddle
Expand Down Expand Up @@ -767,6 +772,7 @@ class BiRNN(Layer):
cell and backward cell.
Examples:
.. code-block:: python
import paddle
Expand Down Expand Up @@ -911,6 +917,7 @@ class SimpleRNN(RNNMixin):
`[num_lauers * num_directions, batch_size, hidden_size]`.
Examples:
.. code-block:: python
import paddle
Expand Down Expand Up @@ -1047,6 +1054,7 @@ class LSTM(RNNMixin):
the shape of each is `[num_lauers * num_directions, batch_size, hidden_size]`.
Examples:
.. code-block:: python
import paddle
Expand Down Expand Up @@ -1175,6 +1183,7 @@ class GRU(RNNMixin):
`[num_lauers * num_directions, batch_size, hidden_size]`.
Examples:
.. code-block:: python
import paddle
Expand Down

0 comments on commit 565ddb9

Please sign in to comment.