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
c9a0da1e
Unverified
Commit
c9a0da1e
authored
Oct 19, 2022
by
AymenBer99
Committed by
GitHub
Oct 19, 2022
Browse files
[Doctest] XLM Config for doctest (#19685)
parent
eccbdbcd
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
1 deletion
+2
-1
src/transformers/models/xlm/configuration_xlm.py
src/transformers/models/xlm/configuration_xlm.py
+1
-1
utils/documentation_tests.txt
utils/documentation_tests.txt
+1
-0
No files found.
src/transformers/models/xlm/configuration_xlm.py
View file @
c9a0da1e
...
@@ -142,7 +142,7 @@ class XLMConfig(PretrainedConfig):
...
@@ -142,7 +142,7 @@ class XLMConfig(PretrainedConfig):
>>> # Initializing a XLM configuration
>>> # Initializing a XLM configuration
>>> configuration = XLMConfig()
>>> configuration = XLMConfig()
>>> # Initializing a model from the configuration
>>> # Initializing a model
(with random weights)
from the configuration
>>> model = XLMModel(configuration)
>>> model = XLMModel(configuration)
>>> # Accessing the model configuration
>>> # Accessing the model configuration
...
...
utils/documentation_tests.txt
View file @
c9a0da1e
...
@@ -154,6 +154,7 @@ src/transformers/models/wavlm/modeling_wavlm.py
...
@@ -154,6 +154,7 @@ src/transformers/models/wavlm/modeling_wavlm.py
src/transformers/models/whisper/configuration_whisper.py
src/transformers/models/whisper/configuration_whisper.py
src/transformers/models/whisper/modeling_whisper.py
src/transformers/models/whisper/modeling_whisper.py
src/transformers/models/whisper/modeling_tf_whisper.py
src/transformers/models/whisper/modeling_tf_whisper.py
src/transformers/models/xlm/configuration_xlm.py
src/transformers/models/xlm_roberta/configuration_xlm_roberta.py
src/transformers/models/xlm_roberta/configuration_xlm_roberta.py
src/transformers/models/xlm_roberta_xl/configuration_xlm_roberta_xl.py
src/transformers/models/xlm_roberta_xl/configuration_xlm_roberta_xl.py
src/transformers/models/xlnet/configuration_xlnet.py
src/transformers/models/xlnet/configuration_xlnet.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