Shortcuts

Typedef torch::nn::functional::MultilabelSoftMarginLossFuncOptions

Typedef Documentation

using torch::nn::functional::MultilabelSoftMarginLossFuncOptions = MultiLabelSoftMarginLossOptions

Options for torch::nn::functional::multilabel_soft_margin_loss.

See the documentation for torch::nn::MultiLabelSoftMarginLossOptions class to learn what arguments are supported.

Example:

namespace F = torch::nn::functional;
F::multilabel_soft_margin_loss(input, target,
F::MultilabelSoftMarginLossFuncOptions().reduction(torch::kNone).weight(weight));

Docs

Access comprehensive developer documentation for PyTorch

View Docs

Tutorials

Get in-depth tutorials for beginners and advanced developers

View Tutorials

Resources

Find development resources and get your questions answered

View Resources