transformers
fadb0533
- Change in-place operations to out-of-place in LogitsProcessors (#29680)
Go
Login via GitHub
Home
Pricing
FAQ
Install
Login
via GitHub
Commit
View On
GitHub
Hide Minimap (CTRL+M)
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>
References
#32831 - [Docs] Update resources
#29969 - [SigLIP] Add fast tokenizer
#38622 - [AutoModelForMaskGeneration] Remove duplicate code
#33111 - [Backbone] Remove out_features everywhere
#33174 - [Zero-shot image classification pipeline] Remove tokenizer_kwargs
#29680 - Change in-place operations to out-of-place in LogitsProcessors
Author
zucchini-nlp
Parents
b469ebc5
Files
3
src/transformers/generation
logits_process.py
tests/generation
test_logits_process.py
test_utils.py
Loading