Oh never mind, they simply linked together. I thought they are not written in python as others.
so in nn/functional.py it has:
return nll_loss(log_softmax(input, 1), target, weight, None, ignore_index, None, reduction)