If we want to shift an image in tensorflow we can do that using:
datagen = ImageDataGenerator(width_shift_range = width_shift_val,
height_shift_range= height_shift_val)
Is there a way to do the same in pytorch?
Using transform, we can do a RandomHorizontalFlip, but I want to shift an image either vertically or horizontally in Pytorch?