API symbolsnn
Copy
tensorplay.nn.functional.multilabel_margin_loss
- tensorplay.nn.functional.multilabel_margin_loss(input: TensorBase, target: TensorBase, size_average=None, reduce=None, reduction: str = 'mean') TensorBase[source]
Compute the multilabel margin loss.
Composition of aten/src/ATen/native/LossMultiLabelMargin.cpp: 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?
