sherjilozair / char-rnn-tensorflow

Multi-layer Recurrent Neural Networks (LSTM, RNN) for character-level language models in Python using Tensorflow
MIT License
2.64k stars 960 forks source link

module 'tensorflow.contrib.rnn' has no attribute #86

Closed vanche closed 7 years ago

vanche commented 7 years ago

In my tensorflow version 0.12.1, I couldn't use "from tensorflow.contrib import rnn" and "from tensorflow.nn import legacy_seq2seq". they were moved. So I used " tf.nn.rnn_cell" and "tf.nn.seq2seq" instead of above.

sherjilozair commented 7 years ago

You need to update tensorflow to 1.0.

vanche commented 7 years ago

thanks, after updating I can use that module