You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
criterion=torch.nn.BCELoss() loss1=criterion(concept1_score_tmp,concept1_GT_tmp.to(self.device)) loss2=criterion(concept2_score_tmp,concept2_GT_tmp.to(self.device))
The loss funtion raised RuntimeError and then I found the value of 'concept1_score' and 'concept2_score' is
criterion=torch.nn.BCELoss()loss1=criterion(concept1_score_tmp,concept1_GT_tmp.to(self.device))loss2=criterion(concept2_score_tmp,concept2_GT_tmp.to(self.device))The loss funtion raised RuntimeError and then I found the value of 'concept1_score' and 'concept2_score' is