Thanks for the prompt reply.
I got this
( input_depth + 2*pad - kernel )/ stride + 1 = input_depth
when I was going through some of Andrew Ng’s video.
I think he is trying to teach us the intuition but I guess there are more parameters like
dilation that I’m not exposed  to.



 ptrblck:

I don’t understand this question. You could pass non-square kernels, e.g. (4, 2) , if you want.


I understood that (4,4) or (2,2)  is reducing by a factor of 4 or 2 ?
Is it uncommon to use non square kernels?
So do we usually hand calculate these outputs or do we leave it for Pytorch to do so? Or do we need to understand some of these things under hood but let Pytorch to do the heavy lifting.
Cheers.