I have n points as tensor(n, 2), the second dimension is x and y coordinate on an image, I want to convert them to tensor(n, W, H), the W and H are   x and y coordinate on the image.
How can I do it with no for loop?
thanks