Generating data in batch of 4 vs 1

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.

Can you give more details please? Are you using DataLoader to generate data from images?

Yes, of course but my question is more general. If I took this batch (created by the DataLoader) and generated each one of the images in a loop, would it be different than generating all at once?