I'm trying to build an autoencoder like network but I don't know how to specify the output shape of the network. I have an input of size mxn
and a paired expected output of size pxq
. I've seen
Calculate the Output size in Convolution layer
Getting the output shape of deconvolution layer using tf.nn.conv2d_transpose in tensorflow
but is there a way force an output shape without having to work out a bunch of math for every input shape?