Unverified Commit 6f775970 authored by Dolen's avatar Dolen Committed by GitHub
Browse files

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: default avatarJoao Gante <joaofranciscocardosogante@gmail.com>
parent 51ed61e2
Showing with 5 additions and 2 deletions
+5 -2
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment