In dgl/examples/pytorch/ogb/ogbn-arxiv/gcn.py, cross entropy is modified as
epsilon = 1 - math.log(2)
def cross_entropy(x, labels):
y = F.cross_entropy(x, labels[:, 0], reduction="none")
y = torch.log(epsilon + y) - math.log(epsilon)
return torch.mean(y)
what does this function do?