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
0d00c08d
Unverified
Commit
0d00c08d
authored
Jul 28, 2021
by
Will Frey
Committed by
GitHub
Jul 29, 2021
Browse files
Fix typo in tokenization_auto.py (#12896)
Fix `config.decoder.__class` -> `config.decoder.__class__`
parent
c3287ebd
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
src/transformers/models/auto/tokenization_auto.py
src/transformers/models/auto/tokenization_auto.py
+1
-1
No files found.
src/transformers/models/auto/tokenization_auto.py
View file @
0d00c08d
...
...
@@ -556,7 +556,7 @@ class AutoTokenizer:
if
type
(
config
.
decoder
)
is
not
type
(
config
.
encoder
):
# noqa: E721
logger
.
warning
(
f
"The encoder model config class:
{
config
.
encoder
.
__class__
}
is different from the decoder model "
f
"config class:
{
config
.
decoder
.
__class
}
. It is not recommended to use the "
f
"config class:
{
config
.
decoder
.
__class
__
}
. It is not recommended to use the "
"`AutoTokenizer.from_pretrained()` method in this case. Please use the encoder and decoder "
"specific tokenizer classes."
)
...
...
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