Does the output of data generation (for example, images) in a batch of 4 different than generating in a loop 4 images (1 every time)? Of course that I update the network only at the end of the loop like it was a batch.