Loss wrappers¶
Sample pairs and triplets out of conventional (outputs, labels) batches.
|
Contrastive Loss [R2d1cdae5627d-1] with random sampling of vector pairs out of the conventional |
|
TripletLoss [Rfe594912252b-1] with random sampling of triplets out of the conventional |
Loss functions not included in PyTorch.
|
Creates a criterion that measures the cosine triplet loss given an input tensors , , and a margin with a value greater than . |