mindspore.ops.SoftMarginLoss
- class mindspore.ops.SoftMarginLoss(reduction='mean')[源代码]
prim = ops.SoftMarginLoss(reduction) out = prim(input, target)
等价于
ops.soft_margin_loss(input, target, reduction)
更多详情请查看:
mindspore.ops.soft_margin_loss()
。
prim = ops.SoftMarginLoss(reduction)
out = prim(input, target)
等价于
ops.soft_margin_loss(input, target, reduction)
更多详情请查看: mindspore.ops.soft_margin_loss()
。