Compute the Cross Entropy Loss after computing the LogSoftmax on the input data.
Methods
forward(inputs, targets)
forward
Given predictions of shape [B x nof_classes] and targets of shape [B] compute and return the CrossEntropyLoss.
[B x nof_classes]
[B]
CrossEntropyLoss
CrossEntropyLoss.__init__()
dgs.models.loss.loss
dgs.models.loss.loss.CrossEntropyLoss.forward