AbrahamSanders / seq2seq-chatbot

A sequence2sequence chatbot implementation with TensorFlow.
MIT License
99 stars 56 forks source link

module 'tensorflow.contrib' has no attribute 'learn' #10

Closed manjubsavanth closed 6 years ago

manjubsavanth commented 6 years ago

Traceback (most recent call last): File "chat.py", line 36, in model_dir = model_dir) as model: File "C:\Users\Manjunatha.Rao\Desktop\Chatbot\seq2seq-chatbot-master\seq2seq-chatbot\chatbot_model.py", line 64, in init tf.contrib.learn.ModeKeys.validate(self.mode) AttributeError: module 'tensorflow.contrib' has no attribute 'learn'

AbrahamSanders commented 6 years ago

Hey @manjubsavanth

What version of tensorflow do you have installed? Try upgrading to the latest:

pip install --upgrade tensorflow Or pip install --upgrade tensorflow-gpu

Regards, Abraham

manjubsavanth commented 6 years ago

Hi Abraham,

I have upgraded the package, it is working now. Thanks for your response.

AbrahamSanders commented 6 years ago

Great!