Solved by ptrblck in post #2 
              
              
                I don’t think that F.interpolate uses any padding, as it should create the indices corresponding to the desired output shape inside the valid input size. 
If you want to pad the input manually, you could use F.pad, where mode indicates the desired padding mode.