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
6cd8676c
Unverified
Commit
6cd8676c
authored
Oct 13, 2022
by
Partho
Committed by
GitHub
Oct 12, 2022
Browse files
[Doctest] Beit Config for doctest (#19542)
parent
09683883
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
2 deletions
+3
-2
src/transformers/models/beit/configuration_beit.py
src/transformers/models/beit/configuration_beit.py
+2
-2
utils/documentation_tests.txt
utils/documentation_tests.txt
+1
-0
No files found.
src/transformers/models/beit/configuration_beit.py
View file @
6cd8676c
...
...
@@ -104,12 +104,12 @@ class BeitConfig(PretrainedConfig):
Example:
```python
>>> from transformers import Beit
Model, BeitConfig
>>> from transformers import Beit
Config, BeitModel
>>> # Initializing a BEiT beit-base-patch16-224-pt22k style configuration
>>> configuration = BeitConfig()
>>> # Initializing a model from the beit-base-patch16-224-pt22k style configuration
>>> # Initializing a model
(with random weights)
from the beit-base-patch16-224-pt22k style configuration
>>> model = BeitModel(configuration)
>>> # Accessing the model configuration
...
...
utils/documentation_tests.txt
View file @
6cd8676c
...
...
@@ -17,6 +17,7 @@ src/transformers/models/albert/modeling_albert.py
src/transformers/models/albert/modeling_tf_albert.py
src/transformers/models/bart/configuration_bart.py
src/transformers/models/bart/modeling_bart.py
src/transformers/models/beit/configuration_beit.py
src/transformers/models/beit/modeling_beit.py
src/transformers/models/bert/configuration_bert.py
src/transformers/models/bert/modeling_bert.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