Thank you for your answer.
No my batchsize is 1.
I have made a dataset with 1000 pics of dogs and 1000 pics of non-dogs. now when I only write
if(torch.equal(predicted, labels)):

it tells me that my model has predicted 1827 pics correctly. but I would like to know how many of them were actually dog pics and which ones.