I have same problem with new version of pytorch, before version 1.x I was train unet with no problem at all in loss functioin using BCELoss or DiceLoss, but when I train again the loss can result in negative result when using BCELoss or BCE Loss with Logits? anyone has a solution this problem?