def METHOD_NAME(self, models, encoder_input):
    """Run encoder and normalize emissions"""
    encoder_out = models[0].encoder(**encoder_input)
    if self.criterion_type == CriterionType.CTC:
        emissions = models[0].get_normalized_probs(encoder_out, log_probs=True)
    elif self.criterion_type == CriterionType.ASG:
        emissions = encoder_out["encoder_out"]
    return emissions.transpose(0, 1).float().cpu().contiguous()