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
0ac6b905
Unverified
Commit
0ac6b905
authored
Oct 14, 2022
by
Partho
Committed by
GitHub
Oct 14, 2022
Browse files
[Doctest] UniSpeech Config for doctest (#19596)
parent
71a27e39
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
2 deletions
+3
-2
src/transformers/models/unispeech/configuration_unispeech.py
src/transformers/models/unispeech/configuration_unispeech.py
+2
-2
utils/documentation_tests.txt
utils/documentation_tests.txt
+1
-0
No files found.
src/transformers/models/unispeech/configuration_unispeech.py
View file @
0ac6b905
...
@@ -164,12 +164,12 @@ class UniSpeechConfig(PretrainedConfig):
...
@@ -164,12 +164,12 @@ class UniSpeechConfig(PretrainedConfig):
Example:
Example:
```python
```python
>>> from transformers import UniSpeech
Model
, UniSpeech
Config
>>> from transformers import UniSpeech
Config
, UniSpeech
Model
>>> # Initializing a UniSpeech facebook/unispeech-base-960h style configuration
>>> # Initializing a UniSpeech facebook/unispeech-base-960h style configuration
>>> configuration = UniSpeechConfig()
>>> configuration = UniSpeechConfig()
>>> # Initializing a model from the facebook/unispeech-base-960h style configuration
>>> # Initializing a model
(with random weights)
from the facebook/unispeech-base-960h style configuration
>>> model = UniSpeechModel(configuration)
>>> model = UniSpeechModel(configuration)
>>> # Accessing the model configuration
>>> # Accessing the model configuration
...
...
utils/documentation_tests.txt
View file @
0ac6b905
...
@@ -102,6 +102,7 @@ src/transformers/models/swin/modeling_swin.py
...
@@ -102,6 +102,7 @@ src/transformers/models/swin/modeling_swin.py
src/transformers/models/swinv2/configuration_swinv2.py
src/transformers/models/swinv2/configuration_swinv2.py
src/transformers/models/trajectory_transformer/configuration_trajectory_transformer.py
src/transformers/models/trajectory_transformer/configuration_trajectory_transformer.py
src/transformers/models/trocr/modeling_trocr.py
src/transformers/models/trocr/modeling_trocr.py
src/transformers/models/unispeech/configuration_unispeech.py
src/transformers/models/unispeech/modeling_unispeech.py
src/transformers/models/unispeech/modeling_unispeech.py
src/transformers/models/unispeech_sat/modeling_unispeech_sat.py
src/transformers/models/unispeech_sat/modeling_unispeech_sat.py
src/transformers/models/van/modeling_van.py
src/transformers/models/van/modeling_van.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