def compute_acc(results, labels):
    """
    Compute the accuracy of prediction given the labels.
    """
    labels = labels.long()
    return (results == labels).float().sum() / len(results)

    Compute the accuracy of prediction given the labels.
    
examples/distributed/rgcn/node_classification.py