class_docstr: The implementation of Kullback-Leibler divergence Loss.
  Refer to https://en.wikipedia.org/wiki/Kullback%E2%80%93Leibler_divergence.
  
  Args:
      ignore_index (int64): Specifies a target value that is ignored
          and does not contribute to the input gradient. Default ``255``.
      temperature (float): the coefficient of kl_loss.
code: def __init__(self, ignore_index=255, temperature=1):
      super().__init__()
      self.ignore_index = ignore_index
      self.temperature = temperature
  
      self.kl_loss = nn.KLDivLoss(reduction="none")
      self.EPS = 1e-8
  
file_path: PaddleSeg/paddleseg/models/losses/kl_loss.py
imports: import paddle
  import paddle.nn
  import paddle.nn.functional
  from paddleseg.cvlibs import manager
label_desc: Use image node_id 1 to create a new KLLoss object from inherited base classes: nn with example: obj = KLLoss(ignore_index, temperature)