Skip to content

Commit 8cce5b8

Browse files
committed
edit backend intro
1 parent 054ceb4 commit 8cce5b8

File tree

1 file changed

+5
-8
lines changed

1 file changed

+5
-8
lines changed

kerasTUT/3-backend.py

+5-8
Original file line numberDiff line numberDiff line change
@@ -36,15 +36,12 @@
3636
----------------------------
3737
Method 2:
3838
39-
Call this line in terminal and change the BACKEND to tensorflow or theano:
39+
define this before import keras:
4040
41-
KERAS_BACKEND=tensorflow python -c "from keras import backend"
42-
43-
---this is for python2+
44-
45-
KERAS_BACKEND=tensorflow python3 -c "from keras import backend"
46-
47-
---this is for python3+
41+
>>> import os
42+
>>> os.environ['KERAS_BACKEND']='theano'
43+
>>> import keras
44+
Using Theano backend.
4845
4946
"""
5047

0 commit comments

Comments
 (0)