mirror of
https://github.com/open-mmlab/mmcv.git
synced 2025-06-03 21:54:52 +08:00
* update * update * fix link * fix bug * update nms_quadri * fix lint * Update test_nms_quadri.py * Update box_iou_quadri.py * fix bug * Update test_nms_quadri.py * Update box_iou_rotated_utils.hpp * Update box_iou_quadri.py * Update mmcv/ops/nms.py
18 lines
747 B
C++
18 lines
747 B
C++
// Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved
|
|
#include "pytorch_cpp_helper.hpp"
|
|
#include "pytorch_device_registry.hpp"
|
|
|
|
void box_iou_quadri_impl(const Tensor boxes1, const Tensor boxes2, Tensor ious,
|
|
const int mode_flag, const bool aligned) {
|
|
DISPATCH_DEVICE_IMPL(box_iou_quadri_impl, boxes1, boxes2, ious, mode_flag,
|
|
aligned);
|
|
}
|
|
|
|
// Interface for Python
|
|
// inline is needed to prevent multiple function definitions when this header is
|
|
// included by different cpps
|
|
void box_iou_quadri(const Tensor boxes1, const Tensor boxes2, Tensor ious,
|
|
const int mode_flag, const bool aligned) {
|
|
box_iou_quadri_impl(boxes1, boxes2, ious, mode_flag, aligned);
|
|
}
|