my way is to transform each image in the batch to numpy and use scipy Gaussian filtering function to do it, and then transform it back to tensor.
are there any inbuilt pytorch functions or clever ways to achieve this ?  thanks