torch.nn.functional.soft_margin_loss¶ torch.nn.functional.soft_margin_loss(input, target, size_average=None, reduce=None, reduction='mean') → Tensor[原始碼][原始碼]¶ 詳情請參閱 SoftMarginLoss。 回傳類型 Tensor