That seems to be right. From the docs:

As with  NLLLoss  31, the input given is expected to contain log-probabilities and is not restricted to a 2D Tensor. The targets are given as probabilities (i.e. without taking the logarithm).