def get_losses(self): self.F = F.Topk_Hard_SVM(self.labels, self.k, self.alpha)
def get_losses(self): self.F_h = F.Topk_Hard_SVM(self.labels, self.k, self.alpha) self.F_s = F.Topk_Smooth_SVM(self.labels, self.k, self.tau, self.alpha)