Can't find implementation of nll_loss_nd

I wanted to checkout the for implementation of torch.nn.functional.nll_loss()
I came across this line where nll_loss was implemented. Looking into the code at the location torch._c._nn.pyi I was unable to find code related to losses but had no luck.

Does anyone where I can find the implementation of the function mentioned above.
Thanks in advance :grinning_face_with_smiling_eyes:

Hi, the function nll_loss_nd should be defined in this file: