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
22502ebb
"vscode:/vscode.git/clone" did not exist on "eb8489971ac1415f67b0abdd1584fde8b659ced9"
Unverified
Commit
22502ebb
authored
Oct 24, 2022
by
sha016
Committed by
GitHub
Oct 24, 2022
Browse files
[Doctest] `MaskFormerConfig` doctest (#19817)
parent
6f8064da
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
1 deletion
+2
-1
src/transformers/models/maskformer/configuration_maskformer.py
...ransformers/models/maskformer/configuration_maskformer.py
+1
-1
utils/documentation_tests.txt
utils/documentation_tests.txt
+1
-0
No files found.
src/transformers/models/maskformer/configuration_maskformer.py
View file @
22502ebb
...
@@ -87,7 +87,7 @@ class MaskFormerConfig(PretrainedConfig):
...
@@ -87,7 +87,7 @@ class MaskFormerConfig(PretrainedConfig):
>>> # Initializing a MaskFormer facebook/maskformer-swin-base-ade configuration
>>> # Initializing a MaskFormer facebook/maskformer-swin-base-ade configuration
>>> configuration = MaskFormerConfig()
>>> configuration = MaskFormerConfig()
>>> # Initializing a model from the facebook/maskformer-swin-base-ade style configuration
>>> # Initializing a model
(with random weights)
from the facebook/maskformer-swin-base-ade style configuration
>>> model = MaskFormerModel(configuration)
>>> model = MaskFormerModel(configuration)
>>> # Accessing the model configuration
>>> # Accessing the model configuration
...
...
utils/documentation_tests.txt
View file @
22502ebb
...
@@ -88,6 +88,7 @@ src/transformers/models/longformer/modeling_tf_longformer.py
...
@@ -88,6 +88,7 @@ src/transformers/models/longformer/modeling_tf_longformer.py
src/transformers/models/longt5/modeling_longt5.py
src/transformers/models/longt5/modeling_longt5.py
src/transformers/models/marian/modeling_marian.py
src/transformers/models/marian/modeling_marian.py
src/transformers/models/markuplm/modeling_markuplm.py
src/transformers/models/markuplm/modeling_markuplm.py
src/transformers/models/maskformer/configuration_maskformer.py
src/transformers/models/mbart/modeling_mbart.py
src/transformers/models/mbart/modeling_mbart.py
src/transformers/models/megatron_bert/configuration_megatron_bert.py
src/transformers/models/megatron_bert/configuration_megatron_bert.py
src/transformers/models/mobilebert/configuration_mobilebert.py
src/transformers/models/mobilebert/configuration_mobilebert.py
...
...
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