How can i use ClassNLLCriterion in pytorch?

Hi
I have a torch code that uses ClassNLLCriterion as criterion, how can i use this criterion in pytorch?
is there any alternative for this criterion in pytorch?

http://pytorch.org/docs/master/nn.html
This is the negative log likelihood loss. Search for NLLLoss and NLLLoss2d

1 Like