How to disable GPU in keras with tensorflow? -


i want compare processing time of code , without gpu. backend of keras tensorflow. uses gpu automatically. use model of keras/examples/mnist_mlp.py comparing.

i checked processing time below. then, how disable gpu? should ~/.keras/keras.json modified?

$ time python mnist_mlp.py  test loss: 0.109761892007 test accuracy: 0.9832 python mnist_mlp.py  38.22s user 3.18s system 162% cpu 25.543 total 

have tried this? :

$ cuda_visible_devices='' time python mnist_mlp.py  

cuda_visible_devices used hide gpu's cuda. here hide them don't put visible device.


Comments

Popular posts from this blog

javascript - Clear button on addentry page doesn't work -

c# - Selenium Authentication Popup preventing driver close or quit -

tensorflow when input_data MNIST_data , zlib.error: Error -3 while decompressing: invalid block type -