So, along with print the Image, I also printed the images size, it came out like this -
images, labels = next(iter(dataloader_train))
imshow_numpy(images[0].numpy())
print(images.shape)

torch.Size([32, 3, 224, 224])  # I think it is (first one don't know, Color Channels, H, W)

In the forward function, I am using this -
#Flatten the Image
x = x.view(-1, 224 * 224)

How can I check if both the target and images are of different batch_sizes?
Also, I have a concern, that my first input in linear layer in CNN is not right -
self.fc1 = nn.Linear(50176, 25088)
self.fc2 = nn.Linear(25088, 12544)
self.fc3 = nn.Linear(12544, 4)

How can I ensure that? Is my point even valid? Thanks.