tumourkit.segmentation.hovernet.models.hovernet.utils.dice_loss

tumourkit.segmentation.hovernet.models.hovernet.utils.dice_loss(true, pred, smooth=0.001, device='cuda')

pred and true must be of torch.float32. Assuming of shape NxHxWxC.