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
b290c32e
Unverified
Commit
b290c32e
authored
May 10, 2020
by
flozi00
Committed by
GitHub
May 10, 2020
Browse files
[docs] fix typo (#4249)
parent
3487be75
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
src/transformers/modeling_auto.py
src/transformers/modeling_auto.py
+1
-1
No files found.
src/transformers/modeling_auto.py
View file @
b290c32e
...
@@ -906,7 +906,7 @@ class AutoModelForQuestionAnswering:
...
@@ -906,7 +906,7 @@ class AutoModelForQuestionAnswering:
Examples::
Examples::
config = BertConfig.from_pretrained('bert-base-uncased') # Download configuration from S3 and cache.
config = BertConfig.from_pretrained('bert-base-uncased') # Download configuration from S3 and cache.
model = AutoModelFor
SequenceClassification
.from_config(config) # E.g. model was saved using `save_pretrained('./test/saved_model/')`
model = AutoModelFor
QuestionAnswering
.from_config(config) # E.g. model was saved using `save_pretrained('./test/saved_model/')`
"""
"""
for
config_class
,
model_class
in
MODEL_FOR_QUESTION_ANSWERING_MAPPING
.
items
():
for
config_class
,
model_class
in
MODEL_FOR_QUESTION_ANSWERING_MAPPING
.
items
():
if
isinstance
(
config
,
config_class
):
if
isinstance
(
config
,
config_class
):
...
...
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