Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
chenpangpang
transformers
Commits
cc030633
Unverified
Commit
cc030633
authored
Oct 20, 2022
by
Partho
Committed by
GitHub
Oct 20, 2022
Browse files
[Doctest] SpeechToTextTransformer Config for doctest (#19757)
parent
bbe2c8b1
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
2 deletions
+3
-2
src/transformers/models/speech_to_text/configuration_speech_to_text.py
...ers/models/speech_to_text/configuration_speech_to_text.py
+2
-2
utils/documentation_tests.txt
utils/documentation_tests.txt
+1
-0
No files found.
src/transformers/models/speech_to_text/configuration_speech_to_text.py
View file @
cc030633
...
...
@@ -100,12 +100,12 @@ class Speech2TextConfig(PretrainedConfig):
Example:
```python
>>> from transformers import Speech2Text
Model
, Speech2Text
Config
>>> from transformers import Speech2Text
Config
, Speech2Text
Model
>>> # Initializing a Speech2Text s2t_transformer_s style configuration
>>> configuration = Speech2TextConfig()
>>> # Initializing a model from the s2t_transformer_s style configuration
>>> # Initializing a model
(with random weights)
from the s2t_transformer_s style configuration
>>> model = Speech2TextModel(configuration)
>>> # Accessing the model configuration
...
...
utils/documentation_tests.txt
View file @
cc030633
...
...
@@ -121,6 +121,7 @@ src/transformers/models/sew/modeling_sew.py
src/transformers/models/sew_d/configuration_sew_d.py
src/transformers/models/sew_d/modeling_sew_d.py
src/transformers/models/speech_encoder_decoder/modeling_speech_encoder_decoder.py
src/transformers/models/speech_to_text/configuration_speech_to_text.py
src/transformers/models/speech_to_text/modeling_speech_to_text.py
src/transformers/models/speech_to_text_2/modeling_speech_to_text_2.py
src/transformers/models/segformer/modeling_tf_segformer.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