examples/research_projects/onnx/summarization/bart_onnx/generation_onnx.py/MinLengthLogitsProcessorTS/forward
class MinLengthLogitsProcessorTS:    def forward(self, input_ids, scores) -> torch.Tensor:
        cur_len = input_ids.shape[-1]
        if cur_len < self.min_length:
            scores[:, self.eos_token_id] = -float("inf")
        return scores