TensorPlay
latest (dev)
Copy
View Markdown

Latest development documentation · Updated 2026-10-15

tensorplay.nn.functional.soft_margin_loss

tensorplay.nn.functional.soft_margin_loss(input: Tensor, target: Tensor, size_average=None, reduce=None, reduction: str = 'mean') → Tensor[source]

Compute the soft margin loss.

See SoftMarginLoss for details.

On this page

Ask DeepWiki