Solved by Mazhar_Shaikh in post #2 
              
              
                Hi woals2274, 
The pytorch conv modules apply only symmetric padding to the input, thus can’t be used to create ‘same’ padding for even sized kernels. 
You could instead apply unsymmetric padding to the input using the following code 
import torch
input_data = torch.rand(5,256,4,64,64)
pad = torch.n…