Typedef torch::nn::functional::MarginRankingLossFuncOptions¶
Defined in File loss.h
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));