src/transformers/generation/tf_logits_process.py/TFNoRepeatNGramLogitsProcessor/__init__
class TFNoRepeatNGramLogitsProcessor:    def __init__(self, ngram_size: int):
        if not isinstance(ngram_size, int) or ngram_size <= 0:
            raise ValueError(f"`ngram_size` has to be a strictly positive integer, but is {ngram_size}")
        self.ngram_size = ngram_size