suriyadeepan / practical_seq2seq

A simple, minimal wrapper for tensorflow's seq2seq module, for experimenting with datasets rapidly
http://suriyadeepan.github.io/2016-12-31-practical-seq2seq/
GNU General Public License v3.0
570 stars 270 forks source link

what specific version of python 3? AttributeError: module 'tensorflow.contrib.rnn' has no attribute 'core_rnn_cell' #45

Closed kuhanw closed 6 years ago

kuhanw commented 6 years ago

Hi all,

I am noticing an error which I am pretty sure has to do with version compatibility in tensorflow, when I try to execute

model = seq2seq_wrapper.Seq2Seq(xseq_len=xseq_len, yseq_len=yseq_len, xvocab_size=xvocab_size, yvocab_size=yvocab_size, ckpt_path='ckpt/twitter/', emb_dim=emb_dim, num_layers=3 )

I get the message, AttributeError: module 'tensorflow.contrib.rnn' has no attribute 'core_rnn_cell'.

But I have installed tensorflow 0.12.0, my python version is 3.5.2. Is there a specific py3 version I need as well?

Thank You,

Kuhan

LeenaShekhar commented 6 years ago

This is due to TF incompatibility. Could you give a quick trial with 1.1.0?

kuhanw commented 6 years ago

Thanks, I got it!