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
637af90d
Unverified
Commit
637af90d
authored
Oct 14, 2022
by
Jing Hua
Committed by
GitHub
Oct 14, 2022
Browse files
xlm roberta config for doctest (#19609)
parent
2d4572b5
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
2 deletions
+3
-2
src/transformers/models/xlm_roberta/configuration_xlm_roberta.py
...nsformers/models/xlm_roberta/configuration_xlm_roberta.py
+2
-2
utils/documentation_tests.txt
utils/documentation_tests.txt
+1
-0
No files found.
src/transformers/models/xlm_roberta/configuration_xlm_roberta.py
View file @
637af90d
...
...
@@ -97,12 +97,12 @@ class XLMRobertaConfig(PretrainedConfig):
Examples:
```python
>>> from transformers import XLMRoberta
Model
, XLMRoberta
Config
>>> from transformers import XLMRoberta
Config
, XLMRoberta
Model
>>> # Initializing a XLM-RoBERTa xlm-roberta-base style configuration
>>> configuration = XLMRobertaConfig()
>>> # Initializing a model from the xlm-roberta-base style configuration
>>> # Initializing a model
(with random weights)
from the xlm-roberta-base style configuration
>>> model = XLMRobertaModel(configuration)
>>> # Accessing the model configuration
...
...
utils/documentation_tests.txt
View file @
637af90d
...
...
@@ -129,6 +129,7 @@ src/transformers/models/wavlm/modeling_wavlm.py
src/transformers/models/whisper/configuration_whisper.py
src/transformers/models/whisper/modeling_whisper.py
src/transformers/models/whisper/modeling_tf_whisper.py
src/transformers/models/xlm_roberta/configuration_xlm_roberta.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