Skip to content

Commit 6aee599

Browse files
authored
fix conv3x3_opt_mali bug test=develop (#6529)
1 parent 41dbef9 commit 6aee599

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

lite/backends/opencl/cl_kernel/image/conv2d_3x3_opt_kernel.cl

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -544,7 +544,8 @@ __kernel void conv2d_3x3_opt_mali(__private const int item_ch,
544544
const int item_ch_id = get_global_id(0);
545545
const int item_w_id = 2 * get_global_id(1);
546546
const int item_h_id = get_global_id(2);
547-
if (item_ch_id >= item_ch || item_w_id >= item_w || item_h_id >= item_h) {
547+
if (item_ch_id >= item_ch || get_global_id(1) >= item_w ||
548+
item_h_id >= item_h) {
548549
return;
549550
}
550551

0 commit comments

Comments
 (0)