Xanthan:

So how can I input an image to this so that the image gets downsampled to (batch_size, 100,1, 1) size


You could try to reshape the image into this shape, but might need to change the size of dim1 depending on the input image shape.



 Xanthan:

(so this would be the latent vector representation of this image)


This wouldn’t be the case, if you are reshaping the input (my previous suggestion), so I assume you want to train another model to create the latent representation for each image and feed these representations to the DCGAN in another step?