Is there anyway to do gaussian filtering for an image(2D,3D) in pytorch?

You can create a Conv2d layer and specify the weights to be gaussian.
Then just apply the conv layer on your image.

7 Likes