:github_url: https://github.com/pytorch/pytorch .. _exhale_function_namespacetorch_1_1nn_1_1functional_1aa269d2670d79081833a148d1cceff637: Function torch::nn::functional::soft_margin_loss ================================================ - Defined in :ref:`file_torch_csrc_api_include_torch_nn_functional_loss.h` Function Documentation ---------------------- .. doxygenfunction:: torch::nn::functional::soft_margin_loss(const Tensor&, const Tensor&, const SoftMarginLossFuncOptions&) :project: PyTorch