torch.nn.functional.soft\_margin\_loss ====================================== .. currentmodule:: torch.nn.functional .. autofunction:: soft_margin_loss