This code should work:
def gaussian_blur(img):
    image = np.array(img)
    image_blur = cv2.GaussianBlur(image,(65,65),10)
    new_image = image_blur
    return new_image

x = torch.randn(3, 224, 224)
img = TF.to_pil_image(x)
transform = transforms.Lambda(gaussian_blur)
img = transform(img)