Typedef torch::nn::functional::TripletMarginWithDistanceLossFuncOptions¶
Defined in File loss.h
Typedef Documentation¶
-
using torch::nn::functional::TripletMarginWithDistanceLossFuncOptions = TripletMarginWithDistanceLossOptions¶
Options for
torch::nn::functional::triplet_margin_with_distance_loss
.See the documentation for
torch::nn::TripletMarginWithDistanceLossOptions
class to learn what arguments are supported.Example:
namespace F = torch::nn::functional; F::triplet_margin_with_distance_loss(anchor, positive, negative, F::TripletMarginWithDistanceLossFuncOptions().margin(1.0));