def get_losses(self): self.F = F.Top1_Hard_SVM(self.labels, self.alpha)
def get_losses(self): self.F_h = F.Top1_Hard_SVM(self.labels, self.alpha) self.F_s = F.Top1_Smooth_SVM(self.labels, self.tau, self.alpha)