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
1fc71191
"...resnet50_tensorflow.git" did not exist on "96481557300438fe13a3f72ffc802f70cc3c08d3"
Unverified
Commit
1fc71191
authored
Dec 22, 2020
by
Sylvain Gugger
Committed by
GitHub
Dec 22, 2020
Browse files
Fix script that check objects are documented (#9259)
parent
e9d77ccd
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
13 additions
and
2 deletions
+13
-2
docs/source/model_doc/transformerxl.rst
docs/source/model_doc/transformerxl.rst
+9
-0
utils/check_repo.py
utils/check_repo.py
+4
-2
No files found.
docs/source/model_doc/transformerxl.rst
View file @
1fc71191
...
@@ -87,12 +87,14 @@ TransfoXLLMHeadModel
...
@@ -87,12 +87,14 @@ TransfoXLLMHeadModel
.. autoclass:: transformers.TransfoXLLMHeadModel
.. autoclass:: transformers.TransfoXLLMHeadModel
:members: forward
:members: forward
TransfoXLForSequenceClassification
TransfoXLForSequenceClassification
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
.. autoclass:: transformers.TransfoXLForSequenceClassification
.. autoclass:: transformers.TransfoXLForSequenceClassification
:members: forward
:members: forward
TFTransfoXLModel
TFTransfoXLModel
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
...
@@ -107,6 +109,13 @@ TFTransfoXLLMHeadModel
...
@@ -107,6 +109,13 @@ TFTransfoXLLMHeadModel
:members: call
:members: call
TFTransfoXLForSequenceClassification
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
.. autoclass:: transformers.TFTransfoXLForSequenceClassification
:members: call
Internal Layers
Internal Layers
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
...
...
utils/check_repo.py
View file @
1fc71191
...
@@ -24,7 +24,7 @@ from pathlib import Path
...
@@ -24,7 +24,7 @@ from pathlib import Path
# python utils/check_repo.py
# python utils/check_repo.py
PATH_TO_TRANSFORMERS
=
"src/transformers"
PATH_TO_TRANSFORMERS
=
"src/transformers"
PATH_TO_TESTS
=
"tests"
PATH_TO_TESTS
=
"tests"
PATH_TO_DOC
=
"docs/source
/model_doc
"
PATH_TO_DOC
=
"docs/source"
# Update this list for models that are not tested with a comment explaining the reason it should not be.
# Update this list for models that are not tested with a comment explaining the reason it should not be.
# Being in this list is an exception and should **not** be the rule.
# Being in this list is an exception and should **not** be the rule.
...
@@ -323,6 +323,7 @@ def find_all_documented_objects():
...
@@ -323,6 +323,7 @@ def find_all_documented_objects():
# One good reason for not being documented is to be deprecated. Put in this list deprecated objects.
# One good reason for not being documented is to be deprecated. Put in this list deprecated objects.
DEPRECATED_OBJECTS
=
[
DEPRECATED_OBJECTS
=
[
"AutoModelWithLMHead"
,
"AutoModelWithLMHead"
,
"BartPretrainedModel"
,
"GlueDataset"
,
"GlueDataset"
,
"GlueDataTrainingArguments"
,
"GlueDataTrainingArguments"
,
"LineByLineTextDataset"
,
"LineByLineTextDataset"
,
...
@@ -338,6 +339,7 @@ DEPRECATED_OBJECTS = [
...
@@ -338,6 +339,7 @@ DEPRECATED_OBJECTS = [
"SquadV1Processor"
,
"SquadV1Processor"
,
"SquadV2Processor"
,
"SquadV2Processor"
,
"TFAutoModelWithLMHead"
,
"TFAutoModelWithLMHead"
,
"TFBartPretrainedModel"
,
"TextDataset"
,
"TextDataset"
,
"TextDatasetForNextSentencePrediction"
,
"TextDatasetForNextSentencePrediction"
,
"glue_compute_metrics"
,
"glue_compute_metrics"
,
...
@@ -456,7 +458,7 @@ def check_repo_quality():
...
@@ -456,7 +458,7 @@ def check_repo_quality():
check_all_decorator_order
()
check_all_decorator_order
()
check_all_models_are_tested
()
check_all_models_are_tested
()
print
(
"Checking all objects are properly documented."
)
print
(
"Checking all objects are properly documented."
)
check_all_objects_are_documented
check_all_objects_are_documented
()
print
(
"Checking all models are in at least one auto class."
)
print
(
"Checking all models are in at least one auto class."
)
check_all_models_are_auto_configured
()
check_all_models_are_auto_configured
()
...
...
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