-
-
Notifications
You must be signed in to change notification settings - Fork 676
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ModuleNotFoundError: No module named 'tensorflow.contrib' #137
Comments
You’re positive that you have Tensorflow 1, not 2 installed? GPT-2-Simple doesn’t support TF 2. |
Nope. That must be what it is. I have TF 2. I'll uninstall and install the right version. What version is the last version? TF 1.13? |
It is TF 1.15. |
Yes, that is a TF 2.0 warning, currently this package doesn't support it. |
Why not add |
Because tensorflow has two flavors: CPU ( |
I just hit this too, and was coming to say add it to requiremnts :) Oh well! |
I am open to adding a hard assert if the tf package version >= |
The assert is added; let me know if the copy needs to be more clear. |
What would it take to port this to 2.0? I have a project that already uses 2.0 |
This tripped me up, too. Apparently tensorflow 1.15 supports both CPU and GPU execution. Is there no way that we can add |
I had ran the program initially and I didn't have tensorflow installed and so got a module error telling me that Tensorflow wasn't installed. Then I pip installed it and now I am getting this error. I googled this error, and have found out that TF 1.14 moved contrib to contrib.trt. Since I just installed TF and have the most recent version, this may be why I am encountering the error, but I don't see it listed in the requirements txt on the repo, so I am unsure. Can you assist? For the record, I am trying to run this within pythonanywhere.
The text was updated successfully, but these errors were encountered: