def build_kd_loss(teacher_logits, student_logits, task_balance=0.3, distill_tempreture=2.0, labels=None, loss_type='mse'):
    if (loss_type == 'mse'):
        return mse_loss(teacher_logits, student_logits)
    elif (loss_type == 'xent'):
        return xent_loss(teacher_logits, student_logits, labels, distill_tempreture, task_balance)
    else:
        return kld_loss(teacher_logits, student_logits, labels, distill_tempreture, task_balance)
def build_kd_loss(teacher_logits, student_logits, task_balance=0.3, distill_tempreture=2.0, labels=None, loss_type='mse'):
    if (loss_type == 'mse'):
        return mse_loss(teacher_logits, student_logits)
    elif (loss_type == 'xent'):
        return xent_loss(teacher_logits, student_logits, labels, distill_tempreture, task_balance)
    else:
        return kld_loss(teacher_logits, student_logits, labels, distill_tempreture, task_balance)