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
506355ca
Unverified
Commit
506355ca
authored
Oct 20, 2022
by
Partho
Committed by
GitHub
Oct 20, 2022
Browse files
[Doctest] SpeechToTextTransformer2 Config for doctest (#19756)
parent
123f65ee
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_2/configuration_speech_to_text_2.py
...models/speech_to_text_2/configuration_speech_to_text_2.py
+2
-2
utils/documentation_tests.txt
utils/documentation_tests.txt
+1
-0
No files found.
src/transformers/models/speech_to_text_2/configuration_speech_to_text_2.py
View file @
506355ca
...
@@ -79,12 +79,12 @@ class Speech2Text2Config(PretrainedConfig):
...
@@ -79,12 +79,12 @@ class Speech2Text2Config(PretrainedConfig):
Example:
Example:
```python
```python
>>> from transformers import Speech2Text2
ForCausalLM
, Speech2Text2
Config
>>> from transformers import Speech2Text2
Config
, Speech2Text2
ForCausalLM
>>> # Initializing a Speech2Text2 s2t_transformer_s style configuration
>>> # Initializing a Speech2Text2 s2t_transformer_s style configuration
>>> configuration = Speech2Text2Config()
>>> configuration = Speech2Text2Config()
>>> # Initializing a model from the s2t_transformer_s style configuration
>>> # Initializing a model
(with random weights)
from the s2t_transformer_s style configuration
>>> model = Speech2Text2ForCausalLM(configuration)
>>> model = Speech2Text2ForCausalLM(configuration)
>>> # Accessing the model configuration
>>> # Accessing the model configuration
...
...
utils/documentation_tests.txt
View file @
506355ca
...
@@ -123,6 +123,7 @@ src/transformers/models/sew_d/modeling_sew_d.py
...
@@ -123,6 +123,7 @@ src/transformers/models/sew_d/modeling_sew_d.py
src/transformers/models/speech_encoder_decoder/modeling_speech_encoder_decoder.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/configuration_speech_to_text.py
src/transformers/models/speech_to_text/modeling_speech_to_text.py
src/transformers/models/speech_to_text/modeling_speech_to_text.py
src/transformers/models/speech_to_text_2/configuration_speech_to_text_2.py
src/transformers/models/speech_to_text_2/modeling_speech_to_text_2.py
src/transformers/models/speech_to_text_2/modeling_speech_to_text_2.py
src/transformers/models/segformer/modeling_tf_segformer.py
src/transformers/models/segformer/modeling_tf_segformer.py
src/transformers/models/squeezebert/configuration_squeezebert.py
src/transformers/models/squeezebert/configuration_squeezebert.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