소스 검색

Make comment in ptb_word_lm compatible with TF 1.0

GBLin 8 년 전
부모
커밋
d86fb5fbad
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      tutorials/rnn/ptb/ptb_word_lm.py

+ 1 - 1
tutorials/rnn/ptb/ptb_word_lm.py

@@ -147,7 +147,7 @@ class PTBModel(object):
     # The alternative version of the code below is:
     #
     # inputs = tf.unstack(inputs, num=num_steps, axis=1)
-    # outputs, state = tf.nn.rnn(cell, inputs,
+    # outputs, state = tf.contrib.rnn.static_rnn(cell, inputs,
     #                            initial_state=self._initial_state)
     outputs = []
     state = self._initial_state