latest (dev)
Copy
Latest development documentation · Updated 2026-10-15
tensorplay.nn.functional.multilabel_margin_loss
- tensorplay.nn.functional.multilabel_margin_loss(input: Tensor, target: Tensor, size_average=None, reduce=None, reduction: str = 'mean') Tensor[source]
Compute the multilabel margin loss.
for each positive label
y(targets are active until the first-1), addmax(0, 1 - x[y] + x[d])over non-target labelsd; divide by C. SeeMultiLabelMarginLossfor details.
Help improve this page
Found an error, an unclear step, or a missing example?
Was this page helpful?

