Is there 'same' padding in pytorch?

I mean using 2x2 kernel, how can I match input and output shape same??

Thank you.

Hi,

If you use a kernel of even size, I don’t think there is a way to have the output size being the same with just a convolution.