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
a5fe1668
Commit
a5fe1668
authored
Aug 28, 2019
by
VictorSanh
Browse files
fix typo
parent
497f73c9
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
pytorch_transformers/modeling_auto.py
pytorch_transformers/modeling_auto.py
+1
-1
No files found.
pytorch_transformers/modeling_auto.py
View file @
a5fe1668
...
@@ -112,7 +112,7 @@ class AutoConfig(object):
...
@@ -112,7 +112,7 @@ class AutoConfig(object):
"""
"""
if
'dilbert'
in
pretrained_model_name_or_path
:
if
'dilbert'
in
pretrained_model_name_or_path
:
return
DilBert
c
onfig
.
from_pretrained
(
pretrained_model_name_or_path
,
**
kwargs
)
return
DilBert
C
onfig
.
from_pretrained
(
pretrained_model_name_or_path
,
**
kwargs
)
elif
'roberta'
in
pretrained_model_name_or_path
:
elif
'roberta'
in
pretrained_model_name_or_path
:
return
RobertaConfig
.
from_pretrained
(
pretrained_model_name_or_path
,
**
kwargs
)
return
RobertaConfig
.
from_pretrained
(
pretrained_model_name_or_path
,
**
kwargs
)
elif
'bert'
in
pretrained_model_name_or_path
:
elif
'bert'
in
pretrained_model_name_or_path
:
...
...
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