-
Notifications
You must be signed in to change notification settings - Fork 19.5k
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
Installing keras makes tensorflow can't find GPU #5776
Comments
Yeah, currently when you install Keras using pip or pip3 it blows off existing TF and installs the default, non-GPU version. It'd be great if there was a flag to not touch existing TF. The workaround is to uninstall TF after installing Keras, and then installing the GPU version using pip or pip3 depending on your preferred python version. Not very elegant, but you gotta do what you gotta do. |
Argument in favor of more sophisticated handling: some folks use TF they have compiled themselves for their native machine architecture to speed up things like on-CPU image processing. For them to be reset to default TF when they upgrade is a bit of a nuisance. |
Thanks for your explanation. |
See #5766 . Use |
Thank you very much! It worked for me
here is results:
|
I have used keras + tensorflow-gpu in my old computer, it's very ok. (I forget the tensorflow version)
I install keras with tensorflow-gpu (version 1.0.1) in my new computer, and before install keras, tensorflow can find my GPU. But after install keras, tensorflow only can find CPU.
(use $ pip3 install keras)
I use these code to check GPU:
And I tried to install keras from source ($ python setup.py install), it would have some error and install fail.
Is this problem about version ?
thanks
The text was updated successfully, but these errors were encountered: