Is it possible to create a tensor like this in a more efficient manner?
height, width = 128,128

w = torch.arange(0, width)
h = torch.arange(0, height)
tensor = torch.zeros((width, height, 2))
for vi in w:
        for vj in h:	
            tensor[i][j] = torch.tensor([float(vi) / height - 0.5, float(vj) / width - 0.5])	
tensor = tensor.reshape(width * height, 2)