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
OpenDAS
vision
Commits
d8ccbe7e
Unverified
Commit
d8ccbe7e
authored
Oct 26, 2020
by
Vasilis Vryniotis
Committed by
GitHub
Oct 26, 2020
Browse files
Minor refactoring based on static analysis on the code of *ROIAlign: (#2892)
- Remove unnecessary return.
parent
2e23e477
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
0 additions
and
8 deletions
+0
-8
torchvision/csrc/cpu/PSROIAlign_cpu.cpp
torchvision/csrc/cpu/PSROIAlign_cpu.cpp
+0
-2
torchvision/csrc/cpu/ROIAlign_cpu.cpp
torchvision/csrc/cpu/ROIAlign_cpu.cpp
+0
-2
torchvision/csrc/cuda/PSROIAlign_cuda.cu
torchvision/csrc/cuda/PSROIAlign_cuda.cu
+0
-2
torchvision/csrc/cuda/ROIAlign_cuda.cu
torchvision/csrc/cuda/ROIAlign_cuda.cu
+0
-2
No files found.
torchvision/csrc/cpu/PSROIAlign_cpu.cpp
View file @
d8ccbe7e
...
@@ -194,8 +194,6 @@ void bilinear_interpolate_gradient(
...
@@ -194,8 +194,6 @@ void bilinear_interpolate_gradient(
// T val = (w1 * v1 + w2 * v2 + w3 * v3 + w4 * v4);
// T val = (w1 * v1 + w2 * v2 + w3 * v3 + w4 * v4);
w1
=
hy
*
hx
,
w2
=
hy
*
lx
,
w3
=
ly
*
hx
,
w4
=
ly
*
lx
;
w1
=
hy
*
hx
,
w2
=
hy
*
lx
,
w3
=
ly
*
hx
,
w4
=
ly
*
lx
;
return
;
}
}
template
<
class
T
>
template
<
class
T
>
...
...
torchvision/csrc/cpu/ROIAlign_cpu.cpp
View file @
d8ccbe7e
...
@@ -269,8 +269,6 @@ void bilinear_interpolate_gradient(
...
@@ -269,8 +269,6 @@ void bilinear_interpolate_gradient(
// T val = (w1 * v1 + w2 * v2 + w3 * v3 + w4 * v4);
// T val = (w1 * v1 + w2 * v2 + w3 * v3 + w4 * v4);
w1
=
hy
*
hx
,
w2
=
hy
*
lx
,
w3
=
ly
*
hx
,
w4
=
ly
*
lx
;
w1
=
hy
*
hx
,
w2
=
hy
*
lx
,
w3
=
ly
*
hx
,
w4
=
ly
*
lx
;
return
;
}
}
template
<
class
T
>
template
<
class
T
>
...
...
torchvision/csrc/cuda/PSROIAlign_cuda.cu
View file @
d8ccbe7e
...
@@ -192,8 +192,6 @@ __device__ void bilinear_interpolate_gradient(
...
@@ -192,8 +192,6 @@ __device__ void bilinear_interpolate_gradient(
// T val = (w1 * v1 + w2 * v2 + w3 * v3 + w4 * v4);
// T val = (w1 * v1 + w2 * v2 + w3 * v3 + w4 * v4);
w1
=
hy
*
hx
,
w2
=
hy
*
lx
,
w3
=
ly
*
hx
,
w4
=
ly
*
lx
;
w1
=
hy
*
hx
,
w2
=
hy
*
lx
,
w3
=
ly
*
hx
,
w4
=
ly
*
lx
;
return
;
}
}
template
<
typename
T
>
template
<
typename
T
>
...
...
torchvision/csrc/cuda/ROIAlign_cuda.cu
View file @
d8ccbe7e
...
@@ -194,8 +194,6 @@ __device__ void bilinear_interpolate_gradient(
...
@@ -194,8 +194,6 @@ __device__ void bilinear_interpolate_gradient(
// T val = (w1 * v1 + w2 * v2 + w3 * v3 + w4 * v4);
// T val = (w1 * v1 + w2 * v2 + w3 * v3 + w4 * v4);
w1
=
hy
*
hx
,
w2
=
hy
*
lx
,
w3
=
ly
*
hx
,
w4
=
ly
*
lx
;
w1
=
hy
*
hx
,
w2
=
hy
*
lx
,
w3
=
ly
*
hx
,
w4
=
ly
*
lx
;
return
;
}
}
template
<
typename
T
>
template
<
typename
T
>
...
...
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