def METHOD_NAME(self, place):
    paddle.disable_static()
    pd_rbox1 = paddle.to_tensor(self.rbox1, place=place)
    pd_rbox2 = paddle.to_tensor(self.rbox2, place=place)
    actual_t = matched_rbox_iou(pd_rbox1, pd_rbox2).numpy()
    poly_rbox1 = self.rbox1
    poly_rbox2 = self.rbox2
    poly_rbox1[:, 0:4] = self.rbox1[:, 0:4] * 1024
    poly_rbox2[:, 0:4] = self.rbox2[:, 0:4] * 1024
    expect_t = matched_rbox_overlaps(poly_rbox1, poly_rbox2, use_cv2=False)
    self.assertAllClose(
        actual_t,
        expect_t,
        msg="rbox_iou has diff at {} \nExpect {}\nBut got {}".format(
            str(place), str(expect_t), str(actual_t)))