Hi, I previously asked about the batch training mode so that I can work with data that can't fit into the main memory of the GPU. Now I'm curious about which training mode is faster, model.train_on_batch or model.fit if the data can go into the main memory.
I first thought model.fit would be faster due to optimization in the code(that I expected) but it seems that model.train_on_batch is much faster.
for about 1million number of data, model.train_on_batch took about 5 minutes(I made about 100 batches) while the model.fit took 20 minutes.
Is this a problem that is specific to what datasets I use and what models I implement?
Or is there a general answer to this question?(That a certain training mode is faster than the other)