[Doctest] UniSpeech Config for doctest (#19596)

This commit is contained in:
Partho 2022-10-14 15:33:35 +05:30 committed by GitHub
parent 71a27e3952
commit 0ac6b90563
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 2 deletions

View File

@ -164,12 +164,12 @@ class UniSpeechConfig(PretrainedConfig):
Example:
```python
>>> from transformers import UniSpeechModel, UniSpeechConfig
>>> from transformers import UniSpeechConfig, UniSpeechModel
>>> # Initializing a UniSpeech facebook/unispeech-base-960h style configuration
>>> 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)
>>> # Accessing the model configuration

View File

@ -102,6 +102,7 @@ src/transformers/models/swin/modeling_swin.py
src/transformers/models/swinv2/configuration_swinv2.py
src/transformers/models/trajectory_transformer/configuration_trajectory_transformer.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_sat/modeling_unispeech_sat.py
src/transformers/models/van/modeling_van.py