code: def compute_coordinates_linspace(self, x):
      # linspace is not supported in ONNX
      h, w = x.size(2), x.size(3)
      y_loc = torch.linspace(-1, 1, h, device=x.device)
      x_loc = torch.linspace(-1, 1, w, device=x.device)
      y_loc, x_loc = torch.meshgrid(y_loc, x_loc)
      y_loc = y_loc.expand([x.shape[0], 1, -1, -1])
      x_loc = x_loc.expand([x.shape[0], 1, -1, -1])
      locations = torch.cat([x_loc, y_loc], 1)
      return locations.to(x)
  
imports: import math
  import torch
  import torch.nn
  import torch.nn.functional
  from mmengine.model.weight_init import caffe2_xavier_init, kaiming_init
  from torch.nn import init
  from mmdet.registry import MODELS
label_desc: Use image node_id 2 for calling the BaseIAMDecoder obj's underlying member method code with example usage: obj.compute_coordinates_linspace(x) and returns: locations