avoid errors when the size of `input_ids` passed to...
avoid errors when the size of `input_ids` passed to `PrefixConstrainedLogitsProcessor` is zero (#36489)
* avoid errors when the size of `input_ids` passed to PrefixConstrainedLogitsProcessor is zero
* use more reasonable process
* avoid early return
---------
Co-authored-by:
Joao Gante <joaofranciscocardosogante@gmail.com>
Showing
+5 -2
Please register or sign in to comment