Skip to content

Commit

Permalink
Revert "add 'reuse' parameter to RNNCells to make code compatible wit…
Browse files Browse the repository at this point in the history
…h tensorflow master code"
  • Loading branch information
nealwu committed Mar 21, 2017
1 parent 2c6d74b commit f6e23e5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tutorials/rnn/ptb/ptb_word_lm.py
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ def __init__(self, is_training, config, input_):
# different than reported in the paper.
def lstm_cell():
return tf.contrib.rnn.BasicLSTMCell(
size, forget_bias=0.0, state_is_tuple=True, reuse=tf.get_variable_scope().reuse)
size, forget_bias=0.0, state_is_tuple=True)
attn_cell = lstm_cell
if is_training and config.keep_prob < 1:
def attn_cell():
Expand Down

0 comments on commit f6e23e5

Please sign in to comment.