Skip to content

Commit

Permalink
roi_align_rotated_v2
Browse files Browse the repository at this point in the history
  • Loading branch information
ason-rob committed Nov 27, 2024
1 parent 5e0db76 commit c5d347d
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions mmcv/ops/csrc/pytorch/roi_align_rotated_v2.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2,22 +2,22 @@
#include "pytorch_cpp_helper.hpp"
#include "pytorch_device_registry.hpp"

void roi_align_rotated_v2_forward_impl(Tensor input, Tensor rois, Tensor output,
void roi_align_rotated_v2_forward_impl(Tensor x, Tensor rois, Tensor y,
int pooled_h, int pooled_w,
double spatial_scale, int sampling_ratio,
int pooled_height, int pooled_width,
bool aligned, bool clockwise) {
DISPATCH_DEVICE_IMPL(roi_align_rotated_v2_forward_impl, input, rois, output,
spatial_scale, sampling_ratio, pooled_height, pooled_width,
DISPATCH_DEVICE_IMPL(roi_align_rotated_v2_forward_impl, x, rois, y,
pooled_h, pooled_w, spatial_scale, sampling_ratio,
aligned, clockwise);
}


void roi_align_rotated_v2_forward(Tensor input, Tensor rois, Tensor output,
void roi_align_rotated_v2_forward(Tensor x, Tensor rois, Tensor y,
int pooled_h, int pooled_w,
double spatial_scale, int sampling_ratio,
int pooled_height, int pooled_width,
bool aligned, bool clockwise) {
roi_align_rotated_v2_forward_impl(input, rois, output, spatial_scale, sampling_ratio,
pooled_height, pooled_width, aligned, clockwise);
roi_align_rotated_v2_forward_impl(x, rois, y, pooled_h, pooled_w,
spatial_scale, sampling_ratio, aligned, clockwise);
}


Expand Down

0 comments on commit c5d347d

Please sign in to comment.