mindspore.ops.SoftMarginLoss ============================ .. py:class:: mindspore.ops.SoftMarginLoss(reduction='mean') .. code-block:: prim = ops.SoftMarginLoss(reduction) out = prim(input, target) 等价于 .. code-block:: ops.soft_margin_loss(input, target, reduction) 更多详情请查看: :func:`mindspore.ops.soft_margin_loss` 。