src/transformers/generation_stopping_criteria.py/StoppingCriteriaList/__call__
class StoppingCriteriaList:    def __call__(self, input_ids: torch.LongTensor, scores: torch.FloatTensor, **kwargs) -> bool:
        return any(criteria(input_ids, scores) for criteria in self)