Hi everyone,
I have been working on an Autoencoder and I have a problem with the MaxPooling outputs: if the input size is odd (put 20x11), the output will be 10x5. So, when I want to recover the original size performing the deconvolution I get 20x10, but I need 20x11.
Mi idea is to put a Linear layer at the output of the Decoder to adjust the size, but I don’t know if it can negatively affect the learning of the model.
My question is: Is there any way to achieve the desired output size without adding a Linear layer? Like setting some parameter of the Conv2d, MaxPool or ConvTranspose2d layers or something like that
Thank you very much!