You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: tensorlayer/layers.py
+5-6Lines changed: 5 additions & 6 deletions
Original file line number
Diff line number
Diff line change
@@ -3803,12 +3803,11 @@ class DynamicRNNLayer(Layer):
3803
3803
The number of hidden units in the layer.
3804
3804
initializer : initializer
3805
3805
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/>`_.
3812
3811
initial_state : None or RNN State
3813
3812
If None, initial_state is zero_state.
3814
3813
dropout : `tuple` of `float`: (input_keep_prob, output_keep_prob).
0 commit comments