def METHOD_NAME(output, output_len, targets, targets_len):
    output_trans = output.permute(1, 0, 2) # needed by the CTCLoss
    METHOD_NAME = F.ctc_loss(output_trans, targets, output_len, targets_len, reduction='none', zero_infinity=True)
    METHOD_NAME /= output_len
    METHOD_NAME = METHOD_NAME.mean()
    return METHOD_NAME