Skip to content

Instantly share code, notes, and snippets.

@kbeathanabhotla
Created June 17, 2017 01:11
Show Gist options
  • Save kbeathanabhotla/01ce688c44354519b0c2f5b673e73281 to your computer and use it in GitHub Desktop.
Save kbeathanabhotla/01ce688c44354519b0c2f5b673e73281 to your computer and use it in GitHub Desktop.
Steps to install Keras
1) pip install keras
2) To verify if keras is using tensorflow as its backend, run the following command:
python -c "from keras import backend; print(backend._BACKEND)"
3) To change the backend, edit the file ~/.keras/keras.json
{
"image_dim_ordering": "tf",
"epsilon": 1e-07,
"floatx": "float32",
"backend": "theano"
}
4) Change the “backend” string to “theano” or “tensorflow” according to your needs.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment