code: def vl_similarity(image_feat, text_feat, temperature=1):
      logits = torch.matmul(image_feat, text_feat.t())
      logits = temperature.exp().clamp(max=100) * logits
      return logits
  
file_path: mmdetection/projects/XDecoder/xdecoder/transformer_decoder.py
imports: import torch
  from torch import nn
  from torch.nn import functional
  from mmdet.registry import MODELS
  from .language_model import LanguageEncoder
  from .transformer_blocks import MLP, Conv2d, CrossAttentionLayer, FFNLayer, PositionEmbeddingSine, SelfAttentionLayer
  from .utils import is_lower_torch_version
label_desc: Use image node_id 1 for calling a global function with example usage: vl_similarity(image_feat, text_feat, temperature) and returns: logits