Hi there,

I’m practicing with building an autoencoder, and I have an encoder that uses xresnet which takes the input (a 425x425 image) and returns a 512-dimensional vector.

The problem is that I need to upscale this 512-dimensional vector to a 425x425 array again. I saw some examples which uses PixelShuffle_ICNR layers to upscale a given tensor, but the layer can only upscale by some integer multiples (scale = 2, scale = 3, etc.)

So 425 has prime factors of 17, 5, and 5, so I could upscale using those factors. Is there an easier way to upscale to an arbitrary size in fastai?