Shortcuts

Typedef torch::nn::functional::TripletMarginWithDistanceLossFuncOptions

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));

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