-
Notifications
You must be signed in to change notification settings - Fork 347
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
pip install of tensorflow-text disables tensorflow-gpu #195
Comments
Yeah; the pip install mechanism has it's shortcomings, and doesn't appear to be designed for relationships like that between tf.text & tf. Pip install also forces the version of tf based on tf text. We would like pip installs to check the version of TF and install the appropriate version of TF Text. I'm not intricately familiar with the pip installation mechanism, but I think this may be impossible since each setup.py is unique per version, so when it runs at installation, pip has already decided on a version. I think the best we could do is hard fail installations with instructions on what command to actually run. So if you have tensorflow-gpu 1.15 installed, and run |
I understand... maybe the solution would be clarifying this in the documentation. If I get some time I'll take a look at the docs and propose how may it work. Thanks! |
Hi, as I have mentioned here; #644 , when I install with correct version number, the gpu version doesn't get disabled. But I get an error as described in this issue. |
Most of the problems come from the following: (to make things easier, use First: running tensorflow with you GPU demands the correct Second: print and check your new environment tensorflow version. Once done it, go the terminal and type: If you only do it, it will give you a At last, type |
1 similar comment
Most of the problems come from the following: (to make things easier, use First: running tensorflow with you GPU demands the correct Second: print and check your new environment tensorflow version. Once done it, go the terminal and type: If you only do it, it will give you a At last, type |
It seems that a pip install of tensorflow-text>=2.0.0rc0 also installs tensorflow-2. If you previously had installed tensorflow-gpu the new one will disable GPU access.
Steps to reproduce:
Dockerfile
Build with
docker build -t prueba .
Test correct GPU access:
Build and test... no GPU:
build and test, tensorflow-gpu works
The text was updated successfully, but these errors were encountered: