code: def __init__(self, enc, enable_cuda_graph=False):
      super().__init__(enable_cuda_graph=enable_cuda_graph)
      enc.text_model._build_causal_attention_mask = (
          self._build_causal_attention_mask
      )
      self.enc = enc
      self.device = self.enc.device
      self.dtype = self.enc.dtype
      self.cuda_graph_created = [False, False]
      self.static_inputs = [None, None]
      self.static_kwargs = [None, None]
      self.static_output = [None, None]
      self._cuda_graphs = [None, None]
      self.iter = 0
      self.config = self.enc.config
  
file_path: DeepSpeed/deepspeed/model_implementations/transformers/clip_encoder.py
imports: import torch
  from deepspeed.accelerator import get_accelerator
  from ..features.cuda_graph import CUDAGraph
label_desc: Use image node_id 1 to create a new DSClipEncoder object from inherited base classes: CUDAGraph, torch.nn with example: obj = DSClipEncoder(enc, enable_cuda_graph)