I have a state-based LSTM defined as a sequential model:
model = Sequential() model.add(LSTM(..., stateful=True)) ...
Later I use it as a functional model:
input_1, input_2 = Input(...), Input(...) output_1 = model(input_1) output_2 = model(input_2)
Is the state from input_1 when we apply model again on input_2 ? If so, how can I reset the model state between calls?
python machine-learning neural-network keras recurrent-neural-network
kennysong
source share