Why does Keras LSTM batch size used for prediction have to be the same as fitting batch size? - Stack Overflow When using a Keras LSTM to predict on time series data I've been getting errors when I'm trying to train the model using a batch size of 50, while then trying to predict on the same model using a batch size of 1 (ie just predicting the next value). Why am I not able to train and fit the model with multiple batches at once, and then use that model to predict for anything other than the same batch size. It doesn't seem to make sense, but then I could easily be missing something about this. in Artificial Intelligence AIwith batchkerasreloadsavesize