I want to define a new loss function similar to the one defined in the action recognition using visual attention paper 95 i.e. eq. 7.
I thought it would be useful to use the NLL Loss defined in PyTorch as a guide but I can’t seem to find the source code. What I found on github was this 143 but I do not see its implementation [here] (https://github.com/pytorch/pytorch/blob/master/torch/nn/_functions/thnn/loss.py 1.1k).
Would anyone be kind enough to post the link to the source code?