pytorch / 2 / generated / torch.nn.functional.multi_margin_loss.html

torch.nn.functional.multi_margin_loss

torch.nn.functional.multi_margin_loss(input, target, p=1, margin=1, weight=None, size_average=None, reduce=None, reduction='mean') → Tensor [source]

See MultiMarginLoss for details.

Return type

Tensor

© 2024, PyTorch Contributors
PyTorch has a BSD-style license, as found in the LICENSE file.
https://pytorch.org/docs/2.1/generated/torch.nn.functional.multi_margin_loss.html