code: import torch 
  
  from .eval_reid import eval_func
  
  def euclidean_dist(x, y):
      m, n = x.size(0), y.size(0)
      xx = torch.pow(x, 2).sum(1, keepdim=True).expand(m, n)
      yy = torch.pow(y, 2).sum(1, keepdim=True).expand(n, m).t()
      dist = xx + yy
      dist.addmm_(1, -2, x, y.t())
      dist = dist.clamp(min=1e-12).sqrt()
      return dist
  
apis: torch.pow