This is a combination of 2 commits. (#3170)

version adaptation

lint fix
pull/3174/head
Wang Yixuan 2024-09-02 16:12:34 +08:00 committed by GitHub
parent 44d871e7f3
commit 3c9d327cc7
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
8 changed files with 7 additions and 7 deletions

View File

@ -1,3 +1,4 @@
#include "common_util.h"
#include "pytorch_npu_helper.hpp"
using namespace NPU_NAME_SPACE;

View File

@ -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_

View File

@ -1,3 +1,4 @@
#include "common_util.h"
#include "pytorch_npu_helper.hpp"
using namespace NPU_NAME_SPACE;

View File

@ -1,3 +1,4 @@
#include "common_util.h"
#include "pytorch_npu_helper.hpp"
using namespace NPU_NAME_SPACE;

View File

@ -1,3 +1,4 @@
#include "common_util.h"
#include "pytorch_npu_helper.hpp"
using namespace NPU_NAME_SPACE;

View File

@ -1,3 +1,4 @@
#include "common_util.h"
#include "pytorch_npu_helper.hpp"
using namespace NPU_NAME_SPACE;

View File

@ -1,3 +1,4 @@
#include "common_util.h"
#include "pytorch_npu_helper.hpp"
using namespace NPU_NAME_SPACE;

View File

@ -1,3 +1,4 @@
#include "common_util.h"
#include "pytorch_npu_helper.hpp"
using namespace NPU_NAME_SPACE;