Can someone explain how to replace theano with tensorflow as the keras backend?
I have searched the forum and can find no clear explanation.
Here is the current contents of my ~/.keras/keras.json file:
{
“floatx”: “float32”,
“epsilon”: 1e-07,
“backend”: “tensorflow”,
“image_data_format”: “channels_last”
“image_dim_ordering”: “tf”
}
But when I try to import keras, I get an error and it says (among other things)
“Using theano backend”
In your folder where envs are stored, go to your environment and find the folder etc/conda/activate.d. Go to the file keras_activate.sh and change the back end appropriately.