Skip to content

Commit 74c8ccb

Browse files
committed
fix build error of kernel on Mali
1 parent 3e3787e commit 74c8ccb

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

modules/dnn/src/opencl/ocl4dnn_lrn.cl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ __kernel void TEMPLATE(lrn_full_no_scale,Dtype)(const int nthreads, __global con
8383
* in_off[(head - size) * step];
8484
}
8585
scale_val = k + accum_scale * alpha_over_size;
86-
out_off[(head - post_pad) * step] = in_off[(head - post_pad) * step] * (Dtype)native_powr((Dtype)scale_val, (Dtype)negative_beta);
86+
out_off[(head - post_pad) * step] = in_off[(head - post_pad) * step] * (Dtype)native_powr(scale_val, negative_beta);
8787
++head;
8888
}
8989
// subtract only
@@ -93,7 +93,7 @@ __kernel void TEMPLATE(lrn_full_no_scale,Dtype)(const int nthreads, __global con
9393
* in_off[(head - size) * step];
9494
}
9595
scale_val = k + accum_scale * alpha_over_size;
96-
out_off[(head - post_pad) * step] = in_off[(head - post_pad) * step] * (Dtype)native_powr((Dtype)scale_val, (Dtype)negative_beta);
96+
out_off[(head - post_pad) * step] = in_off[(head - post_pad) * step] * (Dtype)native_powr(scale_val, negative_beta);
9797
++head;
9898
}
9999
}

0 commit comments

Comments
 (0)