File tree Expand file tree Collapse file tree 1 file changed +4
-8
lines changed
torchvision/csrc/ops/quantized/cpu Expand file tree Collapse file tree 1 file changed +4
-8
lines changed Original file line number Diff line number Diff line change @@ -129,20 +129,16 @@ void qroi_align_forward_kernel_impl(
129
129
// Do not using rounding; this implementation detail is critical
130
130
float offset = aligned ? 0.5 : 0 .;
131
131
float roi_start_w =
132
- dequantize_val (rois_scale, rois_zp, offset_rois[1 ]) *
133
- spatial_scale -
132
+ dequantize_val (rois_scale, rois_zp, offset_rois[1 ]) * spatial_scale -
134
133
offset;
135
134
float roi_start_h =
136
- dequantize_val (rois_scale, rois_zp, offset_rois[2 ]) *
137
- spatial_scale -
135
+ dequantize_val (rois_scale, rois_zp, offset_rois[2 ]) * spatial_scale -
138
136
offset;
139
137
float roi_end_w =
140
- dequantize_val (rois_scale, rois_zp, offset_rois[3 ]) *
141
- spatial_scale -
138
+ dequantize_val (rois_scale, rois_zp, offset_rois[3 ]) * spatial_scale -
142
139
offset;
143
140
float roi_end_h =
144
- dequantize_val (rois_scale, rois_zp, offset_rois[4 ]) *
145
- spatial_scale -
141
+ dequantize_val (rois_scale, rois_zp, offset_rois[4 ]) * spatial_scale -
146
142
offset;
147
143
148
144
float roi_width = roi_end_w - roi_start_w;
You can’t perform that action at this time.
0 commit comments