class_docstr: DMLLoss
code: def __init__(self, act=None, use_log=False):
      super().__init__()
      if act is not None:
          assert act in ["softmax", "sigmoid"]
      if act == "softmax":
          self.act = nn.Softmax(axis=-1)
      elif act == "sigmoid":
          self.act = nn.Sigmoid()
      else:
          self.act = None
  
      self.use_log = use_log
      self.jskl_loss = KLJSLoss(mode="kl")
  
imports: import paddle
  import paddle.nn
  import paddle.nn.functional
  from paddle.nn import L1Loss
  from paddle.nn import MSELoss
  from paddle.nn import SmoothL1Loss
label_desc: Use image node_id 1 to create a new DMLLoss object from inherited base classes: nn with example: obj = DMLLoss(act, use_log)