Shortcuts

Typedef torch::nn::functional::TripletMarginLossFuncOptions

Typedef Documentation

using torch::nn::functional::TripletMarginLossFuncOptions = TripletMarginLossOptions

Options for torch::nn::functional::triplet_margin_loss.

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

Example:

namespace F = torch::nn::functional;
F::triplet_margin_loss(anchor, positive, negative,
F::TripletMarginLossFuncOptions().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