in trainer/loss.py [0:0]
def __init__(self, use_cuda: bool, margin: float = 0.1): super(ContrastiveLoss_coot, self).__init__() self.margin = margin self.sim = cosine_sim self.use_cuda = use_cuda