Hi, jdhao,
Thank you for your reply. But my real question is: suppose I already formed a batch of N, C, H, W, and in order to make this batch, I padded some zeros along the H dimension to some of the images, how do I let the CNN know that these zeros are useless, do not compute gradients resulted from these zeros in all the subsequent modules?
Thank you so much