Refactor self.weight in DiceLoss and FocalLoss
Refactor self.weight in DiceLoss and FocalLoss: a task in life-science-SWE1.0 (Harbor dataset). Title: Refactor self.weight in DiceLoss and FocalLoss
The task
**Title:** Refactor `self.weight` in `DiceLoss` and `FocalLoss`
Part of scalingX/life-science-SWE1.0.