Skip to content

Commit 55d8122

Browse files
committed
example link to dynamic rnn
1 parent 94562fa commit 55d8122

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

example/tutorial_ptb_lstm.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -190,6 +190,9 @@ def main(_):
190190
def inference(x, is_training, num_steps, reuse=None):
191191
"""If reuse is True, the inferences use the existing parameters,
192192
then different inferences share the same parameters.
193+
194+
Note :
195+
- For DynamicRNNLayer, you can set dropout and number of RNN layer internally.
193196
"""
194197
print("\nnum_steps : %d, is_training : %s, reuse : %s" %
195198
(num_steps, is_training, reuse))

example/tutorial_ptb_lstm_state_is_tuple.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -190,6 +190,9 @@ def main(_):
190190
def inference(x, is_training, num_steps, reuse=None):
191191
"""If reuse is True, the inferences use the existing parameters,
192192
then different inferences share the same parameters.
193+
194+
Note :
195+
- For DynamicRNNLayer, you can set dropout and number of RNN layer internally.
193196
"""
194197
print("\nnum_steps : %d, is_training : %s, reuse : %s" %
195198
(num_steps, is_training, reuse))

0 commit comments

Comments
 (0)