@gkrisp9 This is a classic case of CrossEntropy evaluation
https://pytorch.org/docs/stable/generated/torch.nn.CrossEntropyLoss.html
When you have multi label classification, your output dimension becomes
batch_size, num_of_classes
And your input target is batch_size
The solution would be to add this extra line
output = output.data.max(dim=1,keepdim=True)[1]
output = output.view(-1)
acc = accuracy(output, labels)