farizrahman4u / recurrentshop

Framework for building complex recurrent neural networks with Keras
MIT License
767 stars 218 forks source link

NameError: name 'K' is not defined #119

Closed kunkun1230 closed 4 years ago

kunkun1230 commented 4 years ago

when i import recurrentshop, i got this back

` File "D:\Program\Anaconda\lib\site-packages\recurrentshop-1.0.0-py3.7.egg\recurrentshop\engine.py", line 10, in if K.backend() == 'tensorflow':

NameError: name 'K' is not defined`

what should i do ? My backend is theano for keras

absognety commented 4 years ago

https://github.com/farizrahman4u/recurrentshop/pull/120#issue-378817838 - this can fix this. you can close the issue now. Already raised a PR for this.