python - AssertionError when attempting to import keras related to backend -
so, when attempting import keras, following assertionerror appears:
/home/m7nz/anaconda3/envs/ninja-01/lib/python3.6/site-packages/keras/backend/__init__.py in <module>() 32 assert isinstance(_epsilon, float) 33 _backend = _config.get('backend', _backend) ---> 34 assert _backend in {'theano', 'tensorflow'} 35 _image_data_format = _config.get('image_data_format', 36 image_data_format()) assertionerror:
keras.json follows:
{ "floatx": "float32", "epsilon": 1e-07, "backend": "theanos", "image_data_format": "channels_last"
i've tried deleting reference tensorflow in init.py file, error remains.
it's on linux machine, running ubuntu 16. using anaconda3. it's in anaconda environment.
thank help.
change
"backend": "theanos",
to
"backend": "theano",
that typo in json file :-)
Comments
Post a Comment