Комментарии:
what system specs are required?
ОтветитьI've followed your step on installing keras, but i got a runtime error when import keras, which is:To use MKL 2018 with Theano you MUST set "MKL_THREADING_LAYER=GNU" in your environment. How should I settle this?
Ответитьplz solve this problem
import theano
import keras
Traceback (most recent call last):
File "<ipython-input-5-c74e2bd4ca71>", line 1, in <module>
import keras
File "C:\Users\Acer\Anaconda2\lib\site-packages\keras\__init__.py", line 3, in <module>
from . import utils
File "C:\Users\Acer\Anaconda2\lib\site-packages\keras\utils\__init__.py", line 2, in <module>
from . import np_utils
ImportError: cannot import name np_utils
i hv installed keras....bt import is giving tensor flow module error.....
moreover there is no keras.json file in keras folder to make changes u hv specified....plz help
Thanks Anuj! It was very helpful.
Ответитьbro when i install keras after that i import then its show some error like this -> no module named tensorflow . Please give some solution of this problem.
ОтветитьTo all the people having issue with tensorflow backend, just go to your home folder which in my case is c/users/username where you will find .keras folder click it then go to keras.json open it with msword and change backend from tensorflow to theano.
Ответитьhey i have the same problem bro and your video didn't quite solved it. can you please help?
i changed the backend to theano and second property to th and still there is an error:
raise JSONDecodeError("Expecting value", s, err.value) from None
JSONDecodeError: Expecting value
can u pls help me or do a short vid on how to solve this prob?
('The following error happened while compiling the node', forall_inplace,cpu,scan_fn}(TensorConstant{7}, InplaceDimShuffle{1,0,2}.0, IncSubtensor{InplaceSet;:int64:}.0, DeepCopyOp.0, TensorConstant{7}, lstm_1_U_o, lstm_1_U_f, lstm_1_U_i, lstm_1_U_c), '\n', "global name 'CVM' is not defined")
C:\Users\Sateesh\Anaconda2\envs\dato-env\lib\site-packages\theano\gof\link.pyc in make_thunk(self, input_storage, output_storage, storage_map)
688 return self.make_all(input_storage=input_storage,
689 output_storage=output_storage,
--> 690 storage_map=storage_map)[:3]
691
692 def make_all(self, input_storage, output_storage
I installed keras and theano following your tutorials and am getting these errors.Can you suggest how can I resolve this.