Shortcuts

Typedef torch::nn::functional::MarginRankingLossFuncOptions

Typedef Documentation

using torch::nn::functional::MarginRankingLossFuncOptions = MarginRankingLossOptions

Options for torch::nn::functional::margin_ranking_loss.

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

Example:

namespace F = torch::nn::functional;
F::margin_ranking_loss(input1, input2, target,
F::MarginRankingLossFuncOptions().margin(0.5).reduction(torch::kSum));

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