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
d004d779
"git@developer.sourcefind.cn:OpenDAS/vision.git" did not exist on "618072bf5d0da15492003e80af1c913c5f38f76d"
Unverified
Commit
d004d779
authored
Aug 26, 2021
by
Vasilis Vryniotis
Committed by
GitHub
Aug 26, 2021
Browse files
Fix broken clang format test. (#4320)
parent
7a0184aa
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
8 deletions
+4
-8
torchvision/csrc/ops/quantized/cpu/qroi_align_kernel.cpp
torchvision/csrc/ops/quantized/cpu/qroi_align_kernel.cpp
+4
-8
No files found.
torchvision/csrc/ops/quantized/cpu/qroi_align_kernel.cpp
View file @
d004d779
...
@@ -129,20 +129,16 @@ void qroi_align_forward_kernel_impl(
...
@@ -129,20 +129,16 @@ void qroi_align_forward_kernel_impl(
// Do not using rounding; this implementation detail is critical
// Do not using rounding; this implementation detail is critical
float
offset
=
aligned
?
0.5
:
0.
;
float
offset
=
aligned
?
0.5
:
0.
;
float
roi_start_w
=
float
roi_start_w
=
dequantize_val
(
rois_scale
,
rois_zp
,
offset_rois
[
1
])
*
dequantize_val
(
rois_scale
,
rois_zp
,
offset_rois
[
1
])
*
spatial_scale
-
spatial_scale
-
offset
;
offset
;
float
roi_start_h
=
float
roi_start_h
=
dequantize_val
(
rois_scale
,
rois_zp
,
offset_rois
[
2
])
*
dequantize_val
(
rois_scale
,
rois_zp
,
offset_rois
[
2
])
*
spatial_scale
-
spatial_scale
-
offset
;
offset
;
float
roi_end_w
=
float
roi_end_w
=
dequantize_val
(
rois_scale
,
rois_zp
,
offset_rois
[
3
])
*
dequantize_val
(
rois_scale
,
rois_zp
,
offset_rois
[
3
])
*
spatial_scale
-
spatial_scale
-
offset
;
offset
;
float
roi_end_h
=
float
roi_end_h
=
dequantize_val
(
rois_scale
,
rois_zp
,
offset_rois
[
4
])
*
dequantize_val
(
rois_scale
,
rois_zp
,
offset_rois
[
4
])
*
spatial_scale
-
spatial_scale
-
offset
;
offset
;
float
roi_width
=
roi_end_w
-
roi_start_w
;
float
roi_width
=
roi_end_w
-
roi_start_w
;
...
...
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