keras-attention icon indicating copy to clipboard operation
keras-attention copied to clipboard

cannot import name 'Layer' from 'keras.engine'

Open falibabaei opened this issue 4 years ago • 1 comments

I want to add a custom attention layer to my model but when I run the code in https://github.com/datalogue/keras-attention/issues/15 (mzbac commented on Feb 8, 2018), I received the following error cannot import name 'Layer' from 'keras.engine' I think the problem is with importing Recurrent from keras.layers.recurrent any suggestions to solve this issue?

falibabaei avatar Jul 09 '20 15:07 falibabaei

Do you konw how to solve this problem?

yuanphoenix avatar Oct 07 '21 13:10 yuanphoenix