Unverified Commit f3ed26a3 authored by Mukesh K's avatar Mukesh K Committed by GitHub
Browse files

[Doctest] Fixing doctest `configuration_pegasus_x.py` (#19725)



* Fixed pegasus_x config doctest

* Test commit
Co-authored-by: default avatarmukesh663 <mukesh13034@gmail.com>
parent 58640511
......@@ -94,12 +94,12 @@ class PegasusXConfig(PretrainedConfig):
Example:
```python
>>> from transformers import PegasusXModel, PegasusXConfig
>>> from transformers import PegasusXConfig, PegasusXModel
>>> # Initializing a PEGASUS google/pegasus-x-large style configuration
>>> configuration = PegasusXConfig()
>>> # Initializing a model from the google/pegasus-x-large style configuration
>>> # Initializing a model (with random weights) from the google/pegasus-x-large style configuration
>>> model = PegasusXModel(configuration)
>>> # Accessing the model configuration
......
......@@ -92,6 +92,7 @@ src/transformers/models/opt/modeling_tf_opt.py
src/transformers/models/owlvit/modeling_owlvit.py
src/transformers/models/pegasus/configuration_pegasus.py
src/transformers/models/pegasus/modeling_pegasus.py
src/transformers/models/pegasus_x/configuration_pegasus_x.py
src/transformers/models/perceiver/modeling_perceiver.py
src/transformers/models/plbart/modeling_plbart.py
src/transformers/models/poolformer/modeling_poolformer.py
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment