transformers
Replacement of 20 asserts with exceptions
#24757
Merged

Replacement of 20 asserts with exceptions #24757

sgugger merged 9 commits into huggingface:main from feature/replace-assert-with-exception
Baukebrenninkmeijer
initial replacements of asserts with errors/exceptions
e4ad883d
Baukebrenninkmeijer Merge branch 'huggingface:main' into main
a3fb9260
replace assert with exception in generation, align and bart
5badf9ba
reset formatting change
32c41662
reset another formatting issue
f22d4e25
sgugger
sgugger commented on 2023-07-11
Baukebrenninkmeijer Apply suggestion
83fdfc7a
don't touch this file
01afedc0
change to 'is not False'
940d0d4a
sgugger
sgugger commented on 2023-07-11
fix type
5a76a5ec
sgugger
Baukebrenninkmeijer Baukebrenninkmeijer marked this pull request as ready for review 3 years ago
HuggingFaceDocBuilderDev
sgugger
sgugger approved these changes on 2023-07-12
sgugger sgugger merged fc9e387d into main 3 years ago

Login to write a write a comment.

Login via GitHub

Reviewers
Assignees
No one assigned
Labels
Milestone