Skip to content
Snippets Groups Projects
Commit 90357db2 authored by Thang Vu's avatar Thang Vu Committed by Kai Chen
Browse files

remove unused code (#1727)

parent c01ab3b1
No related branches found
No related tags found
No related merge requests found
...@@ -98,12 +98,6 @@ __global__ void ROIAlignForward(const int nthreads, const scalar_t *bottom_data, ...@@ -98,12 +98,6 @@ __global__ void ROIAlignForward(const int nthreads, const scalar_t *bottom_data,
int sample_num_w = int sample_num_w =
(sample_num > 0) ? sample_num : ceil(roi_width / pooled_width); (sample_num > 0) ? sample_num : ceil(roi_width / pooled_width);
scalar_t h = (scalar_t)(ph + 0.5) * bin_size_h + roi_start_h;
scalar_t w = (scalar_t)(pw + 0.5) * bin_size_w + roi_start_w;
int hstart = fminf(floor(h), height - 2);
int wstart = fminf(floor(w), width - 2);
scalar_t output_val = 0; scalar_t output_val = 0;
for (int iy = 0; iy < sample_num_h; iy++) { for (int iy = 0; iy < sample_num_h; iy++) {
const scalar_t y = roi_start_h + ph * bin_size_h + const scalar_t y = roi_start_h + ph * bin_size_h +
...@@ -231,12 +225,6 @@ __global__ void ROIAlignBackward( ...@@ -231,12 +225,6 @@ __global__ void ROIAlignBackward(
const scalar_t count = (scalar_t)(sample_num_h * sample_num_w); const scalar_t count = (scalar_t)(sample_num_h * sample_num_w);
scalar_t h = (scalar_t)(ph + 0.5) * bin_size_h + roi_start_h;
scalar_t w = (scalar_t)(pw + 0.5) * bin_size_w + roi_start_w;
int hstart = fminf(floor(h), height - 2);
int wstart = fminf(floor(w), width - 2);
for (int iy = 0; iy < sample_num_h; iy++) { for (int iy = 0; iy < sample_num_h; iy++) {
const scalar_t y = const scalar_t y =
roi_start_h + ph * bin_size_h + roi_start_h + ph * bin_size_h +
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment