Discussions>Tensorflow 1.13 does not use GPU>

Tensorflow 1.13 does not use GPU

I'm using Keras 2.0 with TensorFlow 1.13 backend. I had to upgrade my Tensorflow. Solved all issues, but realized TensorFlow is not using GPU. Also CUDA_VISIBLE_DEVICES = 0 is set. When I try to print all visible devices in TensorFlow, it prints CPU devices, but GPU is not there. What's wrong with it?

Keras: v2.1.*
Tensorflow: v1.13.1
CUDA: v10.1
Nvidia Driver: v418.39

3 votesNN216.00
1 Answers

The problem can be with tensorflow and tensorflow-gpu packages if you use pip. Try to remove tensorflow calling

pip uninstall tensorflow

After that check one more time you have tensorflow in your pc or not, calling

pip list | grep tensorflow

you can have another tensorflow after removing the previous one, that's why make sure you removed tensorflow package completely. After removing it, install tensorflow-gpu one more time (I recommend you to use  --upgrade flag as well to upgrade all dependencies).

pip install tensorflow-gpu[==version] [--upgrade] [--user]
Couldn't find what you were looking for?and we will find an expert to answer.
How helpful was this page?