Hi,
I was wondering why the negative log likelihood function (NLLLoss()) in torch.nn expected a target. The torch.nn.NLLLoss() uses nll_loss(input, target, weight=self.weight, ignore_index=self.ignore_index, reduction=self.reduction) in his forward call. If NLL has the format :  , why is the target vector needed to compute this, and not just the output of our nn.Softmax() layer?
Thanks,
JP