API symbolsnn
Copy
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.
Supports the same shapes as
torch.nn.functional.nll_loss(): 1Dinputwith a scalartarget, 2D(N, C), and N-d(N, C, d_1, ..., d_k)(torch’snll_loss_nd) with matchingtarget.See
NLLLossfor details.
Help improve this page
Found an error, an unclear step, or a missing example?
Was this page helpful?
