this is the model with 6 classes as output
and this is the training loop
with batch size =2
the shape of the batch ; torch.Size([2, 3, 224, 224])
but in forward the model return tensor with shape of (6) instead of shape(2,6) [batch_size,class]
the error message :
RuntimeError: size mismatch (got input: [6], target: [2])