Created
June 17, 2017 01:11
-
-
Save kbeathanabhotla/01ce688c44354519b0c2f5b673e73281 to your computer and use it in GitHub Desktop.
Steps to install Keras
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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