From 8d381407be1766ae2c2865c5fdb57e8ceba850f0 Mon Sep 17 00:00:00 2001 From: cokedong <408244909@qq.com> Date: Mon, 21 Aug 2023 14:54:43 +0800 Subject: [PATCH] Fix lint --- mmcv/ops/csrc/pytorch/bbox_overlaps.cpp | 2 +- mmcv/ops/csrc/pytorch/nms.cpp | 2 +- mmcv/ops/csrc/pytorch/roi_align.cpp | 6 +++--- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/mmcv/ops/csrc/pytorch/bbox_overlaps.cpp b/mmcv/ops/csrc/pytorch/bbox_overlaps.cpp index 450ff4bfc2..52269a1fd9 100644 --- a/mmcv/ops/csrc/pytorch/bbox_overlaps.cpp +++ b/mmcv/ops/csrc/pytorch/bbox_overlaps.cpp @@ -6,8 +6,8 @@ #include #include -#include "csrc_dipu/diopirt/diopirt_impl.h" #include "csrc_dipu/base/basedef.h" +#include "csrc_dipu/diopirt/diopirt_impl.h" using dipu::diopi_helper::toDiopiScalar; using dipu::diopi_helper::toDiopiTensorHandle; diff --git a/mmcv/ops/csrc/pytorch/nms.cpp b/mmcv/ops/csrc/pytorch/nms.cpp index 4f4ed6a0fe..4370091d2b 100644 --- a/mmcv/ops/csrc/pytorch/nms.cpp +++ b/mmcv/ops/csrc/pytorch/nms.cpp @@ -6,8 +6,8 @@ #include #include -#include "csrc_dipu/diopirt/diopirt_impl.h" #include "csrc_dipu/base/basedef.h" +#include "csrc_dipu/diopirt/diopirt_impl.h" using dipu::diopi_helper::toDiopiScalar; using dipu::diopi_helper::toDiopiTensorHandle; diff --git a/mmcv/ops/csrc/pytorch/roi_align.cpp b/mmcv/ops/csrc/pytorch/roi_align.cpp index 2f8e4a0045..a59c2b43b0 100644 --- a/mmcv/ops/csrc/pytorch/roi_align.cpp +++ b/mmcv/ops/csrc/pytorch/roi_align.cpp @@ -6,8 +6,8 @@ #include #include -#include "csrc_dipu/diopirt/diopirt_impl.h" #include "csrc_dipu/base/basedef.h" +#include "csrc_dipu/diopirt/diopirt_impl.h" using dipu::diopi_helper::toDiopiScalar; using dipu::diopi_helper::toDiopiTensorHandle; @@ -55,7 +55,7 @@ void roi_align_forward_diopi(Tensor input, Tensor rois, Tensor output, auto argmax_y_p = toDiopiTensorHandle(argmax_y); auto argmax_x_p = toDiopiTensorHandle(argmax_x); bool is_mock_cuda = input.device().type() == dipu::DIPU_DEVICE_TYPE; - if (is_mock_cuda && reinterpret_cast(diopiRoiAlignMmcv) != nullptr) { + if (is_mock_cuda && reinterpret_cast(diopiRoiAlignMmcv) != nullptr) { auto ret = diopiRoiAlignMmcv( ch, out_p, argmax_y_p, argmax_x_p, input_p, rois_p, aligned_height, aligned_width, sampling_ratio, pool_mode, spatial_scale, aligned); @@ -95,7 +95,7 @@ void roi_align_backward_diopi(Tensor grad_output, Tensor rois, Tensor argmax_y, diopiContextHandle_t ch = &ctx; bool is_mock_cuda = grad_output.device().type() == dipu::DIPU_DEVICE_TYPE; if (is_mock_cuda && - reinterpret_cast(diopiRoiAlignBackwardMmcv) != nullptr) { + reinterpret_cast(diopiRoiAlignBackwardMmcv) != nullptr) { auto ret = diopiRoiAlignBackwardMmcv(ch, grad_input_, grad_output_, rois_, argmax_y_, argmax_x_, aligned_height, aligned_width, sampling_ratio,