Switching from one backend to another
If you have run Keras at least once, you will find the Keras configuration file at:
|
|
If it isn’t there, you can create it.
NOTE for Windows Users: Please change $HOME with %USERPROFILE%.
The default configuration file looks like this:
|
|
Simply change the field backend to either “theano” or “tensorflow”, and Keras will use the new configuration next time you run any Keras code.
You can also define the environment variable KERAS_BACKEND and this will override what is defined in your config file :