In other words, I don't know if the Keras install will use Theano or TensorFlow, but I'd still like to have control over whether the CPU or GPU is being used. Is this possible? Could we add a flag to ~/.keras/keras.json for this purpose otherwise?
You could automatically check ~/.keras/keras.json at the beginning of your script:
os.environ you can set THEANO_FLAGS to device=gpu (and/or openmp=True for multi-CPU usage) and then import theano.Yeah, sure, but it feels like that should be a function provided by Keras, especially as more backends are eventually added. User code should be backend agnostic.
I always get gpu errors like "c:\tf_jenkins\home" etc. and can't simply switch to cpu (using tensorflow).
There is only a CPU version of Tensorflow available for my environment (Win7/64)!
I have NVIDIA GPU Computing installed, but it's not used (double trouble).
This issue has been automatically marked as stale because it has not had recent activity. It will be closed after 30 days if no further activity occurs, but feel free to re-open a closed issue if needed.
Most helpful comment
Yeah, sure, but it feels like that should be a function provided by Keras, especially as more backends are eventually added. User code should be backend agnostic.