Unbelievable, I never though this calculation will be so interesting.
Shows that even when we involve padding, stride, and dilation it really becomes complex:
c = nn.Conv2d(1, 2, kernel_size=(3,4), padding=1, stride=2, dilation=2)
I see now that bs has key role, but I wonder why only w is taken in account.
Why b part is ignored?
(I know in some cases b can be ignored.)