Thank you, that makes sense. I will try to figure it out when I get back to my computer. So I just have to change the parameters of the reshape method like this:
images = images.reshape(batch_size, nb_features).to(device)

correct? Thanks again!