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
f183a7a3
"...git@developer.sourcefind.cn:chenpangpang/transformers.git" did not exist on "abf3cc70640199596cf92ab8f36a85073afe4f04"
Commit
f183a7a3
authored
Mar 25, 2021
by
Sylvain Gugger
Browse files
Sort init imports
parent
4684bfc7
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
12 additions
and
12 deletions
+12
-12
src/transformers/__init__.py
src/transformers/__init__.py
+11
-11
src/transformers/models/layoutlm/__init__.py
src/transformers/models/layoutlm/__init__.py
+1
-1
No files found.
src/transformers/__init__.py
View file @
f183a7a3
...
...
@@ -1084,6 +1084,17 @@ if is_tf_available():
"TFGPT2PreTrainedModel"
,
]
)
_import_structure
[
"models.layoutlm"
].
extend
(
[
"TF_LAYOUTLM_PRETRAINED_MODEL_ARCHIVE_LIST"
,
"TFLaoutLMMainLayer"
,
"TFLayoutLMForMaskedLM"
,
"TFLayoutLMForSequenceClassification"
,
"TFLayoutLMForTokenClassification"
,
"TFLayoutLMModel"
,
"TFLayoutLMPreTrainedModel"
,
]
)
_import_structure
[
"models.led"
].
extend
([
"TFLEDForConditionalGeneration"
,
"TFLEDModel"
,
"TFLEDPreTrainedModel"
])
_import_structure
[
"models.longformer"
].
extend
(
[
...
...
@@ -1214,17 +1225,6 @@ if is_tf_available():
"TFXLMRobertaModel"
,
]
)
_import_structure
[
"models.layoutlm"
].
extend
(
[
"TF_LAYOUTLM_PRETRAINED_MODEL_ARCHIVE_LIST"
,
"TFLayoutLMForMaskedLM"
,
"TFLayoutLMForSequenceClassification"
,
"TFLayoutLMForTokenClassification"
,
"TFLaoutLMMainLayer"
,
"TFLayoutLMModel"
,
"TFLayoutLMPreTrainedModel"
,
]
)
_import_structure
[
"models.xlnet"
].
extend
(
[
"TF_XLNET_PRETRAINED_MODEL_ARCHIVE_LIST"
,
...
...
src/transformers/models/layoutlm/__init__.py
View file @
f183a7a3
...
...
@@ -44,8 +44,8 @@ if is_tf_available():
_import_structure
[
"modeling_tf_layoutlm"
]
=
[
"TF_LAYOUTLM_PRETRAINED_MODEL_ARCHIVE_LIST"
,
"TFLayoutLMForMaskedLM"
,
"TFLayoutLMForTokenClassification"
,
"TFLayoutLMForSequenceClassification"
,
"TFLayoutLMForTokenClassification"
,
"TFLayoutLMMainLayer"
,
"TFLayoutLMModel"
,
"TFLayoutLMPreTrainedModel"
,
...
...
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