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
c949188b
Unverified
Commit
c949188b
authored
Oct 24, 2022
by
Ayaka
Committed by
GitHub
Oct 24, 2022
Browse files
[Doctest] Add `configuration_poolformer.py` (#19808)
parent
82df83a9
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
2 deletions
+3
-2
src/transformers/models/poolformer/configuration_poolformer.py
...ransformers/models/poolformer/configuration_poolformer.py
+2
-2
utils/documentation_tests.txt
utils/documentation_tests.txt
+1
-0
No files found.
src/transformers/models/poolformer/configuration_poolformer.py
View file @
c949188b
...
...
@@ -74,12 +74,12 @@ class PoolFormerConfig(PretrainedConfig):
Example:
```python
>>> from transformers import PoolFormer
Model
, PoolFormer
Config
>>> from transformers import PoolFormer
Config
, PoolFormer
Model
>>> # Initializing a PoolFormer sail/poolformer_s12 style configuration
>>> configuration = PoolFormerConfig()
>>> # Initializing a model from the sail/poolformer_s12 style configuration
>>> # Initializing a model
(with random weights)
from the sail/poolformer_s12 style configuration
>>> model = PoolFormerModel(configuration)
>>> # Accessing the model configuration
...
...
utils/documentation_tests.txt
View file @
c949188b
...
...
@@ -107,6 +107,7 @@ src/transformers/models/pegasus_x/configuration_pegasus_x.py
src/transformers/models/perceiver/modeling_perceiver.py
src/transformers/models/plbart/configuration_plbart.py
src/transformers/models/plbart/modeling_plbart.py
src/transformers/models/poolformer/configuration_poolformer.py
src/transformers/models/poolformer/modeling_poolformer.py
src/transformers/models/realm/configuration_realm.py
src/transformers/models/reformer/configuration_reformer.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