Enum ContrastiveLossType
Types of contrastive loss functions for knowledge distillation.
public enum ContrastiveLossType
Fields
InfoNCE = 0InfoNCE (Noise Contrastive Estimation) loss.
NTXent = 2NT-Xent (Normalized Temperature-scaled Cross Entropy) loss.
TripletLoss = 1Triplet loss with margin.