def METHOD_NAME(self, inputs, targets, anchors):
    np = len(inputs)
    gt_targets = [targets['target{}'.format(i)] for i in range(np)]
    gt_box = targets['gt_bbox']
    yolo_losses = dict()
    self.distill_pairs.clear()
    for x, t, anchor, downsample in zip(inputs, gt_targets, anchors,
                                        self.downsample):
        yolo_loss = self.yolov3_loss(x, t, gt_box, anchor, downsample,
                                     self.scale_x_y)
        for k, v in yolo_loss.items():
            if k in yolo_losses:
                yolo_losses[k] += v
            else:
                yolo_losses[k] = v
    loss = 0
    for k, v in yolo_losses.items():
        loss += v
    yolo_losses['loss'] = loss
    return yolo_losses