mirror of
https://github.com/huggingface/transformers.git
synced 2025-08-02 03:01:07 +06:00
Remove decoder_config=None
(#34014)
* remove unnecessary line * changed to the right one
This commit is contained in:
parent
1909def2de
commit
04b4e441dc
@ -1037,7 +1037,6 @@ class PretrainedConfig(PushToHubMixin):
|
|||||||
default_config = decoder_config.__class__()
|
default_config = decoder_config.__class__()
|
||||||
else:
|
else:
|
||||||
default_config = None
|
default_config = None
|
||||||
decoder_config = None
|
|
||||||
|
|
||||||
# If it is a composite model, we want to check the subconfig that will be used for generation
|
# If it is a composite model, we want to check the subconfig that will be used for generation
|
||||||
self_decoder_config = self if decoder_attribute_name is None else getattr(self, decoder_attribute_name)
|
self_decoder_config = self if decoder_attribute_name is None else getattr(self, decoder_attribute_name)
|
||||||
|
Loading…
Reference in New Issue
Block a user