hello im having error when i run
_, pred = torch.argmax(y.data, dim=1)
ValueError: too many values to unpack (expected 2)
i hope you can help me
my code
model_ft.eval()


count = 0
with torch.no_grad():
    for image, label in val_loader:
        image = image.cuda()
        label = label.cuda()
        
        y = model_ft(image)
        
        
        _, pred = torch.argmax(y.data, dim=1)
        count += torch.sum(preds == label.data)

    
val_acc = count.item() / len(val_data)
if best_acc < val_acc:
  best_acc = val_acc
print("val accuracy: {:.4f}".format(val_acc))

print(“best accuracy: {:.4f}”.format(best_acc))