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
cace39af
Unverified
Commit
cace39af
authored
Nov 10, 2020
by
Julien Plu
Committed by
GitHub
Nov 10, 2020
Browse files
Add missing import (#8444)
* Add missing import * Fix dummy objects
parent
e21340da
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
0 deletions
+4
-0
src/transformers/__init__.py
src/transformers/__init__.py
+1
-0
src/transformers/utils/dummy_tf_objects.py
src/transformers/utils/dummy_tf_objects.py
+3
-0
No files found.
src/transformers/__init__.py
View file @
cace39af
...
...
@@ -651,6 +651,7 @@ if is_tf_available():
TF_MODEL_FOR_CAUSAL_LM_MAPPING
,
TF_MODEL_FOR_MASKED_LM_MAPPING
,
TF_MODEL_FOR_MULTIPLE_CHOICE_MAPPING
,
TF_MODEL_FOR_NEXT_SENTENCE_PREDICTION_MAPPING
,
TF_MODEL_FOR_PRETRAINING_MAPPING
,
TF_MODEL_FOR_QUESTION_ANSWERING_MAPPING
,
TF_MODEL_FOR_SEQ_TO_SEQ_CAUSAL_LM_MAPPING
,
...
...
src/transformers/utils/dummy_tf_objects.py
View file @
cace39af
...
...
@@ -101,6 +101,9 @@ TF_MODEL_FOR_MASKED_LM_MAPPING = None
TF_MODEL_FOR_MULTIPLE_CHOICE_MAPPING
=
None
TF_MODEL_FOR_NEXT_SENTENCE_PREDICTION_MAPPING
=
None
TF_MODEL_FOR_PRETRAINING_MAPPING
=
None
...
...
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