Skip to content

Commit 6ca60fc

Browse files
committed
[docs] dynamic rnn params
1 parent 645f7b8 commit 6ca60fc

File tree

1 file changed

+5
-6
lines changed

1 file changed

+5
-6
lines changed

tensorlayer/layers.py

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -3803,12 +3803,11 @@ class DynamicRNNLayer(Layer):
38033803
The number of hidden units in the layer.
38043804
initializer : initializer
38053805
The initializer for initializing the parameters.
3806-
sequence_length : a tensor, array or None
3807-
The sequence length of each row of input data, see ``Advanced Ops for Dynamic RNN``.
3808-
- If None, it uses ``retrieve_seq_length_op`` to compute the sequence_length, i.e. when the features of padding (on right hand side) are all zeros.
3809-
- If using word embedding, you may need to compute the sequence_length from the ID array (the integer features before word embedding) by using ``retrieve_seq_length_op2`` or ``retrieve_seq_length_op``.
3810-
- You can also input an numpy array.
3811-
- More details about TensorFlow dynamic_rnn in `Wild-ML Blog <http://www.wildml.com/2016/08/rnns-in-tensorflow-a-practical-guide-and-undocumented-features/>`_.
3806+
sequence_length : a tensor, array or None. The sequence length of each row of input data, see ``Advanced Ops for Dynamic RNN``.
3807+
- If None, it uses ``retrieve_seq_length_op`` to compute the sequence_length, i.e. when the features of padding (on right hand side) are all zeros.
3808+
- If using word embedding, you may need to compute the sequence_length from the ID array (the integer features before word embedding) by using ``retrieve_seq_length_op2`` or ``retrieve_seq_length_op``.
3809+
- You can also input an numpy array.
3810+
- More details about TensorFlow dynamic_rnn in `Wild-ML Blog <http://www.wildml.com/2016/08/rnns-in-tensorflow-a-practical-guide-and-undocumented-features/>`_.
38123811
initial_state : None or RNN State
38133812
If None, initial_state is zero_state.
38143813
dropout : `tuple` of `float`: (input_keep_prob, output_keep_prob).

0 commit comments

Comments
 (0)