-
Notifications
You must be signed in to change notification settings - Fork 0
Open
Description
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
tensor([[[nan, nan, nan, ..., nan, nan, nan],
[nan, nan, nan, ..., nan, nan, nan],
[nan, nan, nan, ..., nan, nan, nan],
...,
Metadata
Metadata
Assignees
Labels
No labels