class_docstr: Adds adapters to the EncoderDecoderModel class.
class_docstr_tok: ["Adds","adapters","to","the","EncoderDecoderModel","class","."]
code: def init_submodels(self):
      adapters.init(self.encoder, self.adapters_config)
      adapters.init(self.decoder, self.adapters_config)
  
file_path: adapters/src/adapters/models/encoder_decoder/mixin_encoder_decoder.py
imports: from typing import Iterable, Tuple
  import torch.nn
  import adapters
  from ...model_mixin import EmbeddingAdaptersMixin, InvertibleAdaptersMixin, ModelAdaptersMixin, ModelUsingSubmodelsAdaptersMixin
label_desc: Use image node_id 2 for calling the EncoderDecoderModelAdaptersMixin obj's underlying member method code with example usage: obj.init_submodels() without return types