Skip to content

Commit 9ab27f2

Browse files
authored
Merge pull request tensorflow#4211 from ofirpress/patch-1
Removing deprecated module
2 parents f732332 + bf2187b commit 9ab27f2

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

tensorflow/models/rnn/ptb/ptb_word_lm.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -117,10 +117,9 @@ def __init__(self, is_training, config):
117117
#
118118
# The alternative version of the code below is:
119119
#
120-
# from tensorflow.models.rnn import rnn
121120
# inputs = [tf.squeeze(input_, [1])
122121
# for input_ in tf.split(1, num_steps, inputs)]
123-
# outputs, state = rnn.rnn(cell, inputs, initial_state=self._initial_state)
122+
# outputs, state = tf.nn.rnn(cell, inputs, initial_state=self._initial_state)
124123
outputs = []
125124
state = self._initial_state
126125
with tf.variable_scope("RNN"):

0 commit comments

Comments
 (0)