It’s apparently [batch_size, 5, 64, 64]?
EDIT:
I assume you are using the else branch in your code.
Could you add the cast to batch_correct like in the upper branch:
# Change
batch_correct = (label.eq(pred.long())).sum().item()
# to
batch_correct = (label.eq(pred.long())).double().sum().item() # or .float()