Is it possible to save memory state in LSTM and restore its value to the model when it is needed?
Yes. The states attribute in a recurrent layer is a list of states, you can call K.set_value(lstm.states[i], val) or K.get_value(lstm.states[i]) on them.
wow this took me only a week to find out lol. but that's great.
Most helpful comment
Yes. The
statesattribute in a recurrent layer is a list of states, you can callK.set_value(lstm.states[i], val)orK.get_value(lstm.states[i])on them.