This is counter-intuitive but there is a reason. I know parallel processing through batches is what makes DataLoaders great.
I designed a general purpose (I thought) method that accepts an autoencoder and a
DataLoader and trains it.
Now I’m working on a new model that exclusively uses
LSTMCells, which it looks like don’t accept batches. So instead of re-writing my
train_encoder(model, DataLoader) method with a huge
if-else block, is there a simple way to turn off batching completely?