Refactor self.weight in DiceLoss and FocalLoss
#7158
Merged
self.weight in DiceLoss and FocalLoss
#7158