ubuntu 14.04 - Keras backend is not changed in my conda environment -


recently exploring deep learning keras on ubuntu14.04 system , encountered weird issue backend of keras. run code in conda virtual environment , use keras tensorflow backend. following official document, sure keras.json has backend set 'tensorflow' shown in screenshot below: keras.json

however, whenever import keras in conda virtual environment says keras backend theano. have no idea how happens , how fix it. weird issue that, when created new conda environment, got backend tensorflow in new environment. however, next day when import keras in same environment backend set theano. keras.json file still set backend tensorflow @ mean time.

hope can me issue. thank much! keras backend in conda environment

i running anaconda on mac. , encounter similar issue yours. case, cannot change backend theano. here have done resolve issue.

in init.py change _backend = 'tensorflow' _backend = 'theano'

in keras.json remove "backend": "tensorflow"

and in anaconda

from keras import backend k

k.backend()

'theano'

hope helps


Comments