Open manuelknott opened 6 years ago
I got it to work by adjusting some attributes: 1) Moved all your shapes into batch_shape=(batch_size,)+( _rest_ofshape) 2) This could be due to version we have, so this may not be a required adjustment for you, but I had to change the initializer to be same size as hidden state list --> So i changed it to ['zeros', 'zeros', 'zeros']
Doing both of these it ran just fine. Couple of Notes: 1) stateful with time-series length of 1 wont even adjust the recurrent weights because it cant propogate through time 2) All stateful models in keras require shape to be altered to batch_shape
Hello,
I am trying to build a recurrentshop.RecurrentModel() as follows. It builds the graph if
stateful=False
but raises an error whenstateful=True
. Ì worked with stateful RNNs in Keras before without any problems. Is there anything special i need to think of when building stateful RNNs with recurrentshop?Thank you very much.
Code:
Error: