Skip to content
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

TensorFlow 2.0 compatibility? #17

Open
shiffman opened this issue Oct 20, 2019 · 3 comments
Open

TensorFlow 2.0 compatibility? #17

shiffman opened this issue Oct 20, 2019 · 3 comments
Labels
help wanted Extra attention is needed

Comments

@shiffman
Copy link
Member

I believe this training script only works with tensorflow 1.x so just noting that we should test / upgrade for compatibility with tensorflow 2.0 at some point.

@shiffman shiffman added the help wanted Extra attention is needed label Oct 20, 2019
@wincentbalin
Copy link
Contributor

Tested this in the up-to-date Colab environment with tensorflow 2.5.0, which gave the error message

ModuleNotFoundError: No module named 'tensorflow.contrib'

for the line

from tensorflow.contrib import rnn

@wincentbalin
Copy link
Contributor

@wincentbalin
Copy link
Contributor

One possible workaround would be using Docker image with Tensorflow 1.15.4 and Python 2:

docker run -it -v /home/user1/project1:/project1 -u user1 tensorflow/tensorflow:1.15.4

Change /home/user1/project1 to the directory with files you would like to access in container. The directory in the container, /project1, might be changed too.

The user user1 must be changed to your own user name. The user option -u user1 might be left out completely, but then the files created in the container will belong to the user root.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

2 participants