mirror of
https://github.com/huggingface/transformers.git
synced 2025-08-02 11:11:05 +06:00
[Doctest] Fixing doctest configuration_pegasus_x.py
(#19725)
* Fixed pegasus_x config doctest * Test commit Co-authored-by: mukesh663 <mukesh13034@gmail.com>
This commit is contained in:
parent
5864051109
commit
f3ed26a3fb
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user