pender / chatbot-rnn

A toy chatbot powered by deep learning and trained on data from Reddit
MIT License
899 stars 370 forks source link

Can't Import name seq2seq with Tensorflow version 1.2.1 #23

Closed DilipRenkila closed 6 years ago

DilipRenkila commented 7 years ago

What version of tensorflow works for this project?

dilip@dilip-ThinkPad:~/chatbot-rnn$ python chatbot.py Traceback (most recent call last): File "chatbot.py", line 14, in from model import Model File "/home/dilip/chatbot-rnn/model.py", line 3, in from tensorflow.python.ops import seq2seq ImportError: cannot import name seq2seq

ghost commented 7 years ago

Try import tensorflow.contrib.seq2seq as seq2seq

skorotkiewicz commented 7 years ago

import tensorflow.contrib.seq2seq as seq2seq

not working :c

AdritaBarari commented 7 years ago

from tensorflow.contrib import seq2seq

worked for me.

milkrong commented 7 years ago

now the seq2seq is under tesorflow.contrib.legacy_seq2seq.python.ops

boardem commented 6 years ago

i used the following with tensorflow 1.4.0: from tensorflow.contrib import seq2seq

pender commented 6 years ago

I finally pushed a significant update to TF 1.4 and Python3, so it should all run out of the box now -- just let me know if there are any further issues.