Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
chenpangpang
transformers
Commits
c4734840
Unverified
Commit
c4734840
authored
Jul 06, 2020
by
Thomas Wolf
Committed by
GitHub
Jul 06, 2020
Browse files
Fix the tokenization warning noted in #5505 (#5550)
* fix warning * style and quality
parent
1bbc28be
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
src/transformers/tokenization_utils.py
src/transformers/tokenization_utils.py
+2
-2
No files found.
src/transformers/tokenization_utils.py
View file @
c4734840
...
...
@@ -588,8 +588,8 @@ class PreTrainedTokenizer(PreTrainedTokenizerBase):
first_ids
,
second_ids
,
add_special_tokens
=
add_special_tokens
,
padding
_strategy
=
PaddingStrategy
.
DO_NOT_PAD
,
# we pad in batch afterward
truncation
_strategy
=
truncation_strategy
,
padding
=
PaddingStrategy
.
DO_NOT_PAD
.
value
,
# we pad in batch afterward
truncation
=
truncation_strategy
.
value
,
max_length
=
max_length
,
stride
=
stride
,
pad_to_multiple_of
=
None
,
# we pad in batch afterward
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment