"configs/models/vscode:/vscode.git/clone" did not exist on "2b3d4150f3b036dfb993755847a16e5409dd1a65"
Update typing in generation_logits_process.py (#12901)
While `Iterable[Iterable[int]]` is a nicer annotation (it's covariant!), the defensive statements parsing out `bad_words_ids` in `__init__(...)` force the caller to pass in `List[List[int]]`. I've changed the annotation to make that clear.
Showing
Please register or sign in to comment