docstr: HrHRNetLoss layer
  
  Args:
      num_joints (int): number of keypoints
docstr_tok: ["HrHRNetLoss","layer","Args",":","num_joints","(","int",")",":","number","of","keypoints"]
code: def __init__(self, num_joints, swahr):
      """
      HrHRNetLoss layer
  
      Args:
          num_joints (int): number of keypoints
      """
      super(HrHRNetLoss, self).__init__()
      if swahr:
          self.heatmaploss = HeatMapSWAHRLoss(num_joints)
      else:
          self.heatmaploss = HeatMapLoss()
      self.aeloss = AELoss()
      self.ziploss = ZipLoss(
          [self.heatmaploss, self.heatmaploss, self.aeloss]
      )
  
imports: from __future__ import absolute_import
  from __future__ import division
  from __future__ import print_function
  from itertools import cycle, islice
  from collections import abc
  import numpy
  import paddle
  import paddle.nn
  from ppdet.core.workspace import register, serializable
label_desc: Use image node_id 1 to create a new HrHRNetLoss object from inherited base classes: nn with example: obj = HrHRNetLoss(num_joints, swahr)