to find the intersection of two bounding box in tensorflow?
问题 The coordinate of the system is boundary coordinates (x_min, y_min, x_max, y_max). and I want to find the intersection of two boxes set1 and set2 set1 -> (n1,4) set2 -> (n2,4) example set_1-> tensor([[0.2400, 0.2342, 0.8500, 0.8048], [0.1420, 0.5075, 0.2440, 0.5856], [0.0000, 0.5075, 0.1420, 0.5976]], device='cuda:0') set_2-> tensor([[-0.0368, -0.0368, 0.0632, 0.0632], [-0.0576, -0.0576, 0.0839, 0.0839], [-0.0576, -0.0222, 0.0839, 0.0485], ..., [ 0.0000, 0.0000, 1.0000, 1.0000], [ 0.0000, 0