How to check if keras tensorflow backend is GPU or CPU version?

The Solution to How to check if keras tensorflow backend is GPU or CPU version? is


Also you can check using Keras backend function:

from keras import backend as K
K.tensorflow_backend._get_available_gpus()

I test this on Keras (2.1.1)

~ Answered on 2017-11-22 09:38:06


Most Viewed Questions: