class_docstr: Inherit from AlignmentEncoder and add support for adapter
class_docstr_tok: ["Inherit","from","AlignmentEncoder","and","add","support","for","adapter"]
code: def add_adapter(self, name: str, cfg: dict):
      for i, conv_layer in enumerate(self.key_proj):
          if i % 2 == 0:
              cfg = self._update_adapter_cfg_input_dim(
                  cfg, conv_layer.conv.out_channels
              )
              conv_layer.add_adapter(name, cfg)
  
      for i, conv_layer in enumerate(self.query_proj):
          if i % 2 == 0:
              cfg = self._update_adapter_cfg_input_dim(
                  cfg, conv_layer.conv.out_channels
              )
              conv_layer.add_adapter(name, cfg)
  
imports: from typing import List, Optional
  from omegaconf import DictConfig
  from nemo.collections.asr.parts.utils import adapter_utils
  from nemo.collections.tts.modules.aligner import AlignmentEncoder
  from nemo.collections.tts.modules.fastpitch import TemporalPredictor
  from nemo.collections.tts.modules.transformer import FFTransformerDecoder, FFTransformerEncoder
  from nemo.core.classes import adapter_mixins
label_desc: Use image node_id 1 for calling the AlignmentEncoderAdapter obj's underlying member method code with example usage: obj.add_adapter(name, cfg) without return types