import torch


def accuracy(outputs, labels):
    """
    Calculate model accuracy
        * :param outputs(torch.tensor): Pytorch weights tensor
        * :param labels(list(str)): List of known labels

    :return (torch.tensor): Prediction accuracy
    """
    _, preds = torch.max(outputs, dim=1)
    return torch.tensor(torch.sum(preds == labels).item() / len(preds))