yaringal / ConcreteDropout

Code for Concrete Dropout as presented in https://arxiv.org/abs/1705.07832
MIT License
246 stars 68 forks source link

'LSTM' object has no attribute 'kernel' #6

Open SaremS opened 6 years ago

SaremS commented 6 years ago

Hi,

since I have updated keras from 2.0.4 to 2.2.0, I am getting

line 76, in build weight = self.layer.kernel AttributeError: 'LSTM' object has no attribute 'kernel'

when trying to use the ConcreteDropout class (copied from your notebook) with LSTM/SimpleRNN which wasn't the case before; Normal Dense() layers are working fine. I am trying to fix it myself, but maybe you already got a solution for this.

Thanks a lot, Sarem