code: def forward(self, a, b):
      sqrt_d = torch.sqrt(torch.tensor(a.size(-1)))
      return -dot_product(a, b, normalize=False) / sqrt_d
  
file_path: flair/flair/nn/distance/cosine.py
imports: import torch
label_desc: Use image node_id 1 for calling the NegativeScaledDotProduct obj's underlying member method code with example usage: obj.forward(a, b) and returns: unknown