latest (dev)
Copy
Latest development documentation · Updated 2026-10-15
tensorplay.nn.functional.nll_loss
- tensorplay.nn.functional.nll_loss(input, target, weight=None, size_average=None, ignore_index=-100, reduce=None, reduction='mean')[source]
The negative log likelihood loss.
inputwith a scalartarget, 2D(N, C), and N-dtarget.See
NLLLossfor details.
Help improve this page
Found an error, an unclear step, or a missing example?
Was this page helpful?

