I don’t see any errors but i’m getting 0 as the accuracy. Here is the code I use for accuracy
def multi_acc(y_pred, y_test):
_, y_pred_tags = torch.max(y_pred, dim = 1)  

_, y_test_tag= torch.max(y_test, dim = 1)

correct_pred = (y_pred_tags == y_test_tag).float()

acc = correct_pred.sum() / len(correct_pred)

acc = torch.round(acc * 100)

return acc