class_docstr: Adds adapters to the CLIPEncoder module of CLIP.
code: def init_adapters(self, model_config, adapters_config):
      # Set hook for parallel composition
      for layer in self.layers:
          self._set_layer_hook_for_parallel(layer)
  
imports: from typing import Iterable, Tuple
  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 CLIPEncoderAdaptersMixin obj's underlying member method code with example usage: obj.init_adapters(model_config, adapters_config) without return types