class_docstr: Adds adapters to the BartDecoderLayer module of BART.
code: def init_adapters(self, model_config, adapters_config):
      super().init_adapters(model_config, adapters_config)
      # Set attention layer location key for prefix tuning
      self.self_attn.location_key = "self"
      self.encoder_attn.location_key = "cross"
      self.cross_attention_adapters = BottleneckLayer("cross_adapter")
  
imports: from typing import Iterable, Optional, Tuple
  import torch
  import torch.nn
  from ...composition import adjust_tensors_for_parallel
  from ...methods.bottleneck import BottleneckLayer
  from ...methods.lora import LoRALinear
  from ...methods.prefix_tuning import PrefixTuningLayer
  from ...model_mixin import EmbeddingAdaptersMixin, EmbeddingAdaptersWrapperMixin, InvertibleAdaptersMixin, InvertibleAdaptersWrapperMixin, ModelBaseAdaptersMixin
label_desc: Use image node_id 1 for calling the BartDecoderLayerAdaptersMixin obj's underlying member method code with example usage: obj.init_adapters(model_config, adapters_config) without return types