class_docstr: The implements of the dice loss.
  
  Args:
      weight (list[float], optional): The weight for each class. Default: None.
      ignore_index (int64): ignore_index (int64, optional): Specifies a target value that
          is ignored and does not contribute to the input gradient. Default ``255``.
      smooth (float32): Laplace smoothing to smooth dice loss and accelerate convergence.
          Default: 1.0
code: def __init__(self, weight=None, ignore_index=255, smooth=1.0):
      super().__init__()
      self.weight = weight
      self.ignore_index = ignore_index
      self.smooth = smooth
      self.eps = 1e-8
  
file_path: PaddleSeg/paddleseg/models/losses/dice_loss.py
imports: import paddle
  from paddle import nn
  import paddle.nn.functional
  from paddleseg.cvlibs import manager
label_desc: Use image node_id 1 to create a new DiceLoss object from inherited base classes: nn with example: obj = DiceLoss(weight, ignore_index, smooth)