# tensorplay.nn.functional.soft_margin_loss

Source: https://www.tensorplay.cn/docs/generated/tensorplay.nn.functional.soft_margin_loss.html

# tensorplay.nn.functional.soft_margin_loss

tensorplay.nn.functional.soft_margin_loss(input: TensorBase, target: TensorBase, size_average=None, reduce=None, reduction: [str](https://docs.python.org/3/library/stdtypes.html#str) = 'mean') &#x2192; TensorBase[[source]](../_modules/tensorplay/nn/functional.html#soft_margin_loss)

Compute the soft margin loss.

See SoftMarginLoss for details.
