Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
chenpangpang
transformers
Commits
7178b29a
Unverified
Commit
7178b29a
authored
Oct 14, 2022
by
Partho
Committed by
GitHub
Oct 14, 2022
Browse files
[Doctest] Swin V2 Config for doctest (#19595)
parent
76b4239e
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
1 deletion
+2
-1
src/transformers/models/swinv2/configuration_swinv2.py
src/transformers/models/swinv2/configuration_swinv2.py
+1
-1
utils/documentation_tests.txt
utils/documentation_tests.txt
+1
-0
No files found.
src/transformers/models/swinv2/configuration_swinv2.py
View file @
7178b29a
...
...
@@ -85,7 +85,7 @@ class Swinv2Config(PretrainedConfig):
>>> # Initializing a Swinv2 microsoft/swinv2_tiny_patch4_windows8_256 style configuration
>>> configuration = Swinv2Config()
>>> # Initializing a model from the microsoft/swinv2_tiny_patch4_windows8_256 style configuration
>>> # Initializing a model
(with random weights)
from the microsoft/swinv2_tiny_patch4_windows8_256 style configuration
>>> model = Swinv2Model(configuration)
>>> # Accessing the model configuration
...
...
utils/documentation_tests.txt
View file @
7178b29a
...
...
@@ -97,6 +97,7 @@ src/transformers/models/speech_to_text/modeling_speech_to_text.py
src/transformers/models/speech_to_text_2/modeling_speech_to_text_2.py
src/transformers/models/segformer/modeling_tf_segformer.py
src/transformers/models/swin/modeling_swin.py
src/transformers/models/swinv2/configuration_swinv2.py
src/transformers/models/trajectory_transformer/configuration_trajectory_transformer.py
src/transformers/models/trocr/modeling_trocr.py
src/transformers/models/unispeech/modeling_unispeech.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