alan_ayu:

I have a bounding boxes variable, whose size is [num_boxes,4], and I want to get all the coordinates within all the boxes’ area. Do you have any idea to do this job efficiently by PyTorch?


I think that might be solved with numpy.mgrid, but I am not sure if there is any PyTorch equivalent. Nevertheless, numpy is usually a faster choice in python.