mirror of
https://github.com/facebookresearch/fairseq.git
synced 2024-09-11 09:15:43 +03:00
Update transformer_config.py
fix the default factory for 'decoder' in DecoderConfig
This commit is contained in:
parent
9b31f305d8
commit
d01a9c30d8
@ -117,7 +117,7 @@ class TransformerConfig(FairseqDataclass):
|
||||
default=DEFAULT_MAX_SOURCE_POSITIONS,
|
||||
metadata={"help": "Maximum input length supported by the encoder"},
|
||||
)
|
||||
decoder: DecoderConfig = field(default_factory=EncDecBaseConfig)
|
||||
decoder: DecoderConfig = field(default_factory=DecoderConfig)
|
||||
# TODO should really be in the decoder config
|
||||
max_target_positions: int = field(
|
||||
default=DEFAULT_MAX_TARGET_POSITIONS,
|
||||
|
Loading…
Reference in New Issue
Block a user