I understand that when installing tensorflow, you either install the GPU or CPU version. How can I check which one is installed (I use linux).
If the GPU version is installed, would it be automatically running on CPU if GPU is unavailable or would it throw an error? And if GPU is available, is there a specific field or value you need to set to make sure it's running on GPU?
Also you can check using Keras backend function:
I test this on Keras (2.1.1)
According to the documentation.
You can check what all devices are used by tensorflow by -
Also as suggested in this answer
This will print whether your tensorflow is using a CPU or a GPU backend. If you are running this command in jupyter notebook, check out the console from where you have launched the notebook.
If you are sceptic whether you have installed the tensorflow gpu version or not. You can install the gpu version via pip.
pip install tensorflow-gpu