[Doctest] Fixing mobile bert configuration doctest (#19557)

* Fixing mobile bert configuration doctest

* Fixed build failures by removing empty line
This commit is contained in:
RamitPahwa 2022-10-13 04:56:35 -05:00 committed by GitHub
parent 3ae21936e5
commit 1d4d9dc3c9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 2 deletions

View File

@ -93,12 +93,12 @@ class MobileBertConfig(PretrainedConfig):
Examples:
```python
>>> from transformers import MobileBertModel, MobileBertConfig
>>> from transformers import MobileBertConfig, MobileBertModel
>>> # Initializing a MobileBERT configuration
>>> configuration = MobileBertConfig()
>>> # Initializing a model from the configuration above
>>> # Initializing a model (with random weights) from the configuration above
>>> model = MobileBertModel(configuration)
>>> # Accessing the model configuration

View File

@ -61,6 +61,7 @@ src/transformers/models/longt5/modeling_longt5.py
src/transformers/models/marian/modeling_marian.py
src/transformers/models/markuplm/modeling_markuplm.py
src/transformers/models/mbart/modeling_mbart.py
src/transformers/models/mobilebert/configuration_mobilebert.py
src/transformers/models/mobilebert/modeling_mobilebert.py
src/transformers/models/mobilebert/modeling_tf_mobilebert.py
src/transformers/models/mobilevit/modeling_mobilevit.py