Solved by 0phoff in post #2 
              
              
                EDIT 
Hmm, seems they added a lot of padding classes since I looked last time and this is not needed anymore… 
This page has all the padding you might want  

Padding, whilst copying the values of the tensor is doable with the Functional interface of PyTorch. 
You can read more about the different p…