Hi, I’m trying to save multiple images (number of batch_size) from tensors.
Let’s say, we want to add an adversarial noise on each image.
The most efficient way I can think of is that

load images of batch size
calculate adversarial noise and add them --> which makes Tensor([B, C, W, H])
using for loop to save each image from the tensor.

Is there a faster or more ‘data-parallel’ way to save images?