torch.nn.functional.soft_margin_loss¶ torch.nn.functional.soft_margin_loss(input, target, size_average=None, reduce=None, reduction='mean') → 张量[源代码]¶ 详情请参见 SoftMarginLoss。 Return type 张量