Skip to content

Commit

Permalink
This is a combination of 2 commits. (#3170)
Browse files Browse the repository at this point in the history
version adaptation

lint fix
  • Loading branch information
hust17yixuan committed Sep 2, 2024
1 parent 44d871e commit 3c9d327
Show file tree
Hide file tree
Showing 8 changed files with 7 additions and 7 deletions.
1 change: 1 addition & 0 deletions mmcv/ops/csrc/pytorch/npu/bbox_overlaps_npu.cpp
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
#include "common_util.h"
#include "pytorch_npu_helper.hpp"

using namespace NPU_NAME_SPACE;
Expand Down
7 changes: 0 additions & 7 deletions mmcv/ops/csrc/pytorch/npu/common_util.h
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,4 @@
#define MMCV_OPS_CSRC_COMMON__UTIL_HPP_
const int SIZE = 8;

c10::SmallVector<int64_t, SIZE> array_to_vector(c10::IntArrayRef shape) {
c10::SmallVector<int64_t, SIZE> shape_small_vec;
for (uint64_t i = 0; i < shape.size(); i++) {
shape_small_vec.emplace_back(shape[i]);
}
}

#endif // MMCV_OPS_CSRC_COMMON__UTIL_HPP_
1 change: 1 addition & 0 deletions mmcv/ops/csrc/pytorch/npu/fused_bias_leakyrelu_npu.cpp
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
#include "common_util.h"
#include "pytorch_npu_helper.hpp"

using namespace NPU_NAME_SPACE;
Expand Down
1 change: 1 addition & 0 deletions mmcv/ops/csrc/pytorch/npu/nms_npu.cpp
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
#include "common_util.h"
#include "pytorch_npu_helper.hpp"

using namespace NPU_NAME_SPACE;
Expand Down
1 change: 1 addition & 0 deletions mmcv/ops/csrc/pytorch/npu/nms_rotated_npu.cpp
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
#include "common_util.h"
#include "pytorch_npu_helper.hpp"

using namespace NPU_NAME_SPACE;
Expand Down
1 change: 1 addition & 0 deletions mmcv/ops/csrc/pytorch/npu/roi_align_npu.cpp
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
#include "common_util.h"
#include "pytorch_npu_helper.hpp"

using namespace NPU_NAME_SPACE;
Expand Down
1 change: 1 addition & 0 deletions mmcv/ops/csrc/pytorch/npu/roi_align_rotated_npu.cpp
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
#include "common_util.h"
#include "pytorch_npu_helper.hpp"

using namespace NPU_NAME_SPACE;
Expand Down
1 change: 1 addition & 0 deletions mmcv/ops/csrc/pytorch/npu/roipoint_pool3d_forward.cpp
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
#include "common_util.h"
#include "pytorch_npu_helper.hpp"

using namespace NPU_NAME_SPACE;
Expand Down

0 comments on commit 3c9d327

Please sign in to comment.