Skip to content

Commit

Permalink
Add unified header to roi align rotated
Browse files Browse the repository at this point in the history
  • Loading branch information
Johnson-Wang committed Apr 19, 2021
1 parent a15f377 commit d228af5
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 5 deletions.
6 changes: 3 additions & 3 deletions mmcv/ops/csrc/onnxruntime/cpu/roi_align_rotated.cpp
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
// Modified from
// https://github.com/facebookresearch/detectron2/tree/master/detectron2/layers/csrc/ROIAlignRotated
// Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved
#include "roi_align_rotated.h"

#include "../ort_mmcv_utils.h"

// Implementation taken from
// https://github.com/facebookresearch/detectron2/blob/master/detectron2/layers/csrc/ROIAlignRotated/ROIAlignRotated_cpu.cpp
struct PreCalc {
int pos1;
int pos2;
Expand Down
2 changes: 1 addition & 1 deletion mmcv/ops/csrc/parrots/roi_align_rotated_cpu.cpp
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// Modified from
// https://github.com/facebookresearch/detectron2/tree/master/detectron2/layers/csrc/ROIAlign
// https://github.com/facebookresearch/detectron2/tree/master/detectron2/layers/csrc/ROIAlignRotated
// Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved
#include <ATen/ATen.h>
#include <ATen/TensorUtils.h>
Expand Down
2 changes: 1 addition & 1 deletion mmcv/ops/csrc/pytorch/roi_align_rotated_cpu.cpp
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// Modified from
// https://github.com/facebookresearch/detectron2/tree/master/detectron2/layers/csrc/ROIAlign
// https://github.com/facebookresearch/detectron2/tree/master/detectron2/layers/csrc/ROIAlignRotated
// Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved
#include <ATen/ATen.h>
#include <ATen/TensorUtils.h>
Expand Down
3 changes: 3 additions & 0 deletions mmcv/ops/csrc/roi_align_rotated_cuda_kernel.cuh
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
// Modified from
// https://github.com/facebookresearch/detectron2/tree/master/detectron2/layers/csrc/ROIAlignRotated
// Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved
#ifndef ROI_ALIGN_ROTATED_CUDA_KERNEL_CUH
#define ROI_ALIGN_ROTATED_CUDA_KERNEL_CUH

Expand Down

0 comments on commit d228af5

Please sign in to comment.