Aug 23, 2017 · 1 min read
Thanks, this is a great post!
I get the following error when playing with your code:
/PYTHONPATH/keras/layers/recurrent.py”, line 314, in call
if len(initial_state) != len(self.states):
TypeError: object of type ‘NoneType’ has no len()
You set the states in your attentiondecoder to
self.states = [None, None] # y, s
Do you know how to fix this error?