transformers
fadb0533 - Change in-place operations to out-of-place in LogitsProcessors (#29680)

Comment changes are shownComment changes are hidden
Commit
1 year ago
Change in-place operations to out-of-place in LogitsProcessors (#29680) * change in-place -> out-of-place * add tests * add more tests * naming consistency * fix doctest * forgot min-length processors * empty * Revert "fix doctest" This reverts commit 4772768457f9bc057f1d4d9d67ea94eb7224eb8d. * revert change in docstring * Update tests/generation/test_logits_process.py Co-authored-by: amyeroberts <22614925+amyeroberts@users.noreply.github.com> * Update tests/generation/test_logits_process.py Co-authored-by: amyeroberts <22614925+amyeroberts@users.noreply.github.com> --------- Co-authored-by: amyeroberts <22614925+amyeroberts@users.noreply.github.com>
Author
Parents
  • src/transformers/generation
    • File
      logits_process.py
  • tests/generation
    • File
      test_logits_process.py
    • File
      test_utils.py