Hi Anas!



 ANAS_KHAN:

self.l1=nn.Linear(3*75*75 , 1020)
...
out= x.view(x.size(0), -1)
out =self.l1(x)



Your model expects an input with 3 * 75 * 75 = 16875 features, but
you are only passing in 784 features.
Print out the shape of the tensor that you are passing into your model.
I expect that it will be [64, 28, 28] (where you are passing in a batch
of 64 28x28 images that x.view(x.size(0), -1) turns into a tensor
of shape [64, 784]).
Best.
K. Frank