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
51d21b76
Unverified
Commit
51d21b76
authored
Oct 12, 2022
by
Partho
Committed by
GitHub
Oct 12, 2022
Browse files
[Doctest] Add `configuration_yolos.py` (#19539)
* YOLOS Config for doctest * fix
parent
209bec46
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
2 deletions
+3
-2
src/transformers/models/yolos/configuration_yolos.py
src/transformers/models/yolos/configuration_yolos.py
+2
-2
utils/documentation_tests.txt
utils/documentation_tests.txt
+1
-0
No files found.
src/transformers/models/yolos/configuration_yolos.py
View file @
51d21b76
...
...
@@ -92,12 +92,12 @@ class YolosConfig(PretrainedConfig):
Example:
```python
>>> from transformers import Yolos
Model
, Yolos
Config
>>> from transformers import Yolos
Config
, Yolos
Model
>>> # Initializing a YOLOS hustvl/yolos-base style configuration
>>> configuration = YolosConfig()
>>> # Initializing a model from the hustvl/yolos-base style configuration
>>> # Initializing a model
(with random weights)
from the hustvl/yolos-base style configuration
>>> model = YolosModel(configuration)
>>> # Accessing the model configuration
...
...
utils/documentation_tests.txt
View file @
51d21b76
...
...
@@ -101,5 +101,6 @@ src/transformers/models/wav2vec2_with_lm/processing_wav2vec2_with_lm.py
src/transformers/models/wavlm/modeling_wavlm.py
src/transformers/models/whisper/modeling_whisper.py
src/transformers/models/whisper/modeling_tf_whisper.py
src/transformers/models/yolos/configuration_yolos.py
src/transformers/models/yolos/modeling_yolos.py
src/transformers/models/x_clip/modeling_x_clip.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