class_docstr: Uses the CLIP transformer encoder for text.
class_docstr_tok: ["Uses","the","CLIP","transformer","encoder","for","text","."]
code: def forward(self, text):
      tokens = clip.tokenize(text).to(self.device)
      z = self.model.encode_text(tokens)
      if self.normalize:
          z = z / torch.linalg.norm(z, dim=1, keepdim=True)
      return z
  
imports: import torch
  import torch.nn
  from functools import partial
  import clip
  from einops import rearrange, repeat
  from transformers import CLIPTokenizer, CLIPTextModel
  import kornia
  from ldm.modules.x_transformer import Encoder, TransformerWrapper
label_desc: Use image node_id 3 for calling the FrozenCLIPTextEmbedder obj's underlying member method code with example usage: obj.forward(text) and returns: z