Solved by Sanjan_Das in post #5 
              
              
                You should be able to do this using torchvision.transforms.RandomAffine. You can set the degrees to 0 and set the translate parameter to what you need. 
https://pytorch.org/vision/stable/transforms.html#torchvision.transforms.RandomAffine 
# An example. Note that translate refers to the fraction of …