# tensorplay.nn.functional.soft_margin_loss Source: https://www.tensorplay.cn/docs/generated/tensorplay.nn.functional.soft_margin_loss.html ```python tensorplay.nn.functional.soft_margin_loss(input: Tensor, target: Tensor, size_average=None, reduce=None, reduction: str = 'mean') → Tensor ``` Compute the soft margin loss. See SoftMarginLoss for details.