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
textgenrnn() not working in Google Colab without "%tensorflow_version 1.x" #178
Comments
I am also using Google Collab trying to train a fresh new model and got the same error. I tried removing the name attribute but it does not help. What confuses me is that placeholder attribute is from Tensorflow 1.x and being textgenrnn for tensorflow > 2.1 i don't understand why it is using that attribute. Running it without Collab does not have the same problem, but overheats my cpu |
So after reading the note in the picture I posted here, it turns out if we put "%tensorflow_version 1.0x" before we run "import tensorflow", textgenrnn should work in google colab. |
I have just updated the notebook with the 1.X magic. (the reason it's necessary is because Google Colab contains an outdated textgenrnn version which does not support 2.0, to my annoyance.) |
@minimaxir colab broke again? 1.x : 2.x : Looks like some dependencies shifted around and colab was not updated :( Found a partial solution, if you do:
The notebook will run as expected, but run on an older version. :( |
Hello! I was using textgenrnn(name=model_name) on a google colab a few weeks ago to train a model and at the time it worked perfectly. Today I repeated the same correct steps I took before, but it gave me this error (see picture). If you need more details feel free to let me know.
link to the google colab: https://colab.research.google.com/drive/1nNB-uNfBKmCOpaOY9owgSFKgMxl2qCmZ#scrollTo=P8wSlgXoDPCR
The text was updated successfully, but these errors were encountered: