(cls)
| 1142 | |
| 1143 | @classmethod |
| 1144 | def default_config(cls) -> Config: |
| 1145 | cfg = super().default_config() |
| 1146 | transformer_cfg = cfg.decoder.transformer.layer |
| 1147 | transformer_cfg.cross_attention = TransformerAttentionLayer.default_config() |
| 1148 | return cfg |
| 1149 | |
| 1150 | def __init__(self, cfg: Config, *, parent: Module): |
| 1151 | super().__init__(cfg, parent=parent) |
no outgoing calls