Skip to content

Commit 3d444d5

Browse files
Fix ROIAlign kernel error
1 parent f92c4f0 commit 3d444d5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/plugins/intel_gpu/src/kernel_selector/cl_kernels/roi_align_ref.cl

+1-1
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,7 @@ KERNEL(roi_align_ref)(const __global INPUT0_TYPE* src_data,
109109
}
110110
}
111111
#if AVG_POOL
112-
pooled_value /= sampling_ratio_x * sampling_ratio_x;
112+
pooled_value /= sampling_ratio_x * sampling_ratio_y;
113113
#endif
114114

115115
dst_data[OUTPUT_GET_INDEX(r, c, y, x)] = ACTIVATION((OUTPUT_TYPE)pooled_value, ACTIVATION_PARAMS);

0 commit comments

Comments
 (0)