I want to pass an image into a network and perform gradient update on the image. But I also want to add random perturbation on the image such as rotations and jittering, but not the PIL type of image but on the tensor. However, all torchvision transformations of these types are on PIL type image not on tensor.