Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Raise exceptions instead of using assertions for control flow #12789 * # coding=utf-8 * Raise exceptions instead of using assertions for control flow * Raise exceptions instead of using assertions for control flow * Update src/transformers/tokenization_utils.py Raise exceptions instead of using assertions for control flow Co-authored-by: Suraj Patil <[email protected]> * Update src/transformers/tokenization_utils.py Raise exceptions instead of using assertions for control flow Co-authored-by: Sylvain Gugger <[email protected]> * Raise exceptions instead of using assertions for control flow * test * Raise exceptions instead of using assertions for control flow Co-authored-by: MocktaiLEngineer <[email protected]> Co-authored-by: Suraj Patil <[email protected]> Co-authored-by: Sylvain Gugger <[email protected]>
- Loading branch information