mirror of
https://github.com/huggingface/transformers.git
synced 2025-08-01 02:31:11 +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__()
|
||||
else:
|
||||
default_config = None
|
||||
decoder_config = None
|
||||
|
||||
# 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)
|
||||
|
Loading…
Reference in New Issue
Block a user