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
2dc8cb87
Commit
2dc8cb87
authored
Sep 29, 2019
by
VictorSanh
Browse files
fix unknown imports (*ForMultipleChoice) in run_multiple_choice
parent
ae50ad91
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
3 deletions
+4
-3
transformers/__init__.py
transformers/__init__.py
+4
-3
No files found.
transformers/__init__.py
View file @
2dc8cb87
...
@@ -74,14 +74,15 @@ if is_torch_available():
...
@@ -74,14 +74,15 @@ if is_torch_available():
GPT2LMHeadModel
,
GPT2DoubleHeadsModel
,
GPT2LMHeadModel
,
GPT2DoubleHeadsModel
,
load_tf_weights_in_gpt2
,
GPT2_PRETRAINED_MODEL_ARCHIVE_MAP
)
load_tf_weights_in_gpt2
,
GPT2_PRETRAINED_MODEL_ARCHIVE_MAP
)
from
.modeling_xlnet
import
(
XLNetPreTrainedModel
,
XLNetModel
,
XLNetLMHeadModel
,
from
.modeling_xlnet
import
(
XLNetPreTrainedModel
,
XLNetModel
,
XLNetLMHeadModel
,
XLNetForSequenceClassification
,
XLNetFor
QuestionAnsweringSimpl
e
,
XLNetForSequenceClassification
,
XLNetFor
MultipleChoic
e
,
XLNetForQuestionAnswering
,
XLNetForQuestionAnsweringSimple
,
XLNetForQuestionAnswering
,
load_tf_weights_in_xlnet
,
XLNET_PRETRAINED_MODEL_ARCHIVE_MAP
)
load_tf_weights_in_xlnet
,
XLNET_PRETRAINED_MODEL_ARCHIVE_MAP
)
from
.modeling_xlm
import
(
XLMPreTrainedModel
,
XLMModel
,
from
.modeling_xlm
import
(
XLMPreTrainedModel
,
XLMModel
,
XLMWithLMHeadModel
,
XLMForSequenceClassification
,
XLMWithLMHeadModel
,
XLMForSequenceClassification
,
XLMForQuestionAnswering
,
XLMForQuestionAnsweringSimple
,
XLMForQuestionAnswering
,
XLMForQuestionAnsweringSimple
,
XLM_PRETRAINED_MODEL_ARCHIVE_MAP
)
XLM_PRETRAINED_MODEL_ARCHIVE_MAP
)
from
.modeling_roberta
import
(
RobertaForMaskedLM
,
RobertaModel
,
RobertaForSequenceClassification
,
from
.modeling_roberta
import
(
RobertaForMaskedLM
,
RobertaModel
,
RobertaForSequenceClassification
,
RobertaForMultipleChoice
,
ROBERTA_PRETRAINED_MODEL_ARCHIVE_MAP
)
ROBERTA_PRETRAINED_MODEL_ARCHIVE_MAP
)
from
.modeling_distilbert
import
(
DistilBertForMaskedLM
,
DistilBertModel
,
from
.modeling_distilbert
import
(
DistilBertForMaskedLM
,
DistilBertModel
,
DistilBertForSequenceClassification
,
DistilBertForQuestionAnswering
,
DistilBertForSequenceClassification
,
DistilBertForQuestionAnswering
,
...
...
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