Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
ModelZoo
SOLOv2-pytorch
Commits
90357db2
Commit
90357db2
authored
Nov 29, 2019
by
Thang Vu
Committed by
Kai Chen
Nov 29, 2019
Browse files
remove unused code (#1727)
parent
c01ab3b1
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
12 deletions
+0
-12
mmdet/ops/roi_align/src/roi_align_kernel.cu
mmdet/ops/roi_align/src/roi_align_kernel.cu
+0
-12
No files found.
mmdet/ops/roi_align/src/roi_align_kernel.cu
View file @
90357db2
...
@@ -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
+
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment