class_docstr: Compute the Soft clDice loss defined in:
  
      Shit et al. (2021) clDice -- A Novel Topology-Preserving Loss Function
      for Tubular Structure Segmentation. (https://arxiv.org/abs/2003.07311)
  
  Adapted from:
      https://github.com/jocpae/clDice/blob/master/cldice_loss/pytorch/cldice.py#L38
class_docstr_tok: ["Compute","the","Soft","clDice","loss","defined","in",":","Shit","et","al",".","(","2021",")","clDice","--","A","Novel","Topology-Preserving","Loss","Function","for","Tubular","Structure","Segmentation",".","(","https",":","\/\/arxiv.org\/abs\/2003.07311",")","Adapted","from",":","https",":","\/\/github.com\/jocpae\/clDice\/blob\/master\/cldice_loss\/pytorch\/cldice.py","#","L38"]
docstr: Args:
      iter_: Number of iterations for skeletonization
      smooth: Smoothing parameter
      alpha: Weighing factor for cldice
docstr_tok: ["Args",":","iter_",":","Number","of","iterations","for","skeletonization","smooth",":","Smoothing","parameter","alpha",":","Weighing","factor","for","cldice"]
code: def __init__(
      self, iter_: int = 3, alpha: float = 0.5, smooth: float = 1.0
  ) -> None:
      """
      Args:
          iter_: Number of iterations for skeletonization
          smooth: Smoothing parameter
          alpha: Weighing factor for cldice
      """
      super().__init__()
      self.iter = iter_
      self.smooth = smooth
      self.alpha = alpha
  
file_path: MONAI/monai/losses/cldice.py
imports: from __future__ import annotations
  import torch
  import torch.nn.functional
  from torch.nn.modules.loss import _Loss
label_desc: Use image node_id 1 to create a new SoftDiceclDiceLoss object from inherited base classes: _Loss with example: obj = SoftDiceclDiceLoss(iter_, alpha, smooth)