Thanks for this but I get ‘out of memory’ issue when I use a batch size greater than 64. I have a concatenated CNN-LSTM model where the outputs of the CNN are sent to the LSTM. The inputs to the CNN are batches of images e.g., (64,3,299,299)-> (batch size, number of channels, W,H). However, I want the sequence length of the LSTM to be much greater than the batch size e.g. 600. Since I cant set the batch size to 600 due to ‘out of memory’ error, how can solve this?