I have a similar issue…can’t seem to fix it. I have an input of dimension (batch_size=64, channels=1, x=80, y=10) and kernel size (17,1) with no padding. I want the size in the x-dimension to reduce after every conv2d operation and no change in the y dimension.
later I use convtranspose2d where it throws this error.