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
c06a5a31
Unverified
Commit
c06a5a31
authored
Oct 17, 2022
by
AymenBer99
Committed by
GitHub
Oct 17, 2022
Browse files
[Doctest] XLNet config for doctest (#19649)
parent
57505b1d
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
1 deletion
+2
-1
src/transformers/models/xlnet/configuration_xlnet.py
src/transformers/models/xlnet/configuration_xlnet.py
+1
-1
utils/documentation_tests.txt
utils/documentation_tests.txt
+1
-0
No files found.
src/transformers/models/xlnet/configuration_xlnet.py
View file @
c06a5a31
...
...
@@ -131,7 +131,7 @@ class XLNetConfig(PretrainedConfig):
>>> # Initializing a XLNet configuration
>>> configuration = XLNetConfig()
>>> # Initializing a model from the configuration
>>> # Initializing a model
(with random weights)
from the configuration
>>> model = XLNetModel(configuration)
>>> # Accessing the model configuration
...
...
utils/documentation_tests.txt
View file @
c06a5a31
...
...
@@ -141,6 +141,7 @@ 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/xlm_roberta_xl/configuration_xlm_roberta_xl.py
src/transformers/models/xlnet/configuration_xlnet.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