Skip to content

Commit f77c2d7

Browse files
committed
add explicit cast for half
1 parent e668cff commit f77c2d7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

modules/dnn/src/opencl/prior_box.cl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -114,6 +114,6 @@ __kernel void clip(const int nthreads,
114114
for (int index = get_global_id(0); index < nthreads; index += get_global_size(0))
115115
{
116116
Dtype4 vec = vload4(index, dst);
117-
vstore4(clamp(vec, 0.0f, 1.0f), index, dst);
117+
vstore4(clamp(vec, (Dtype)0.0f, (Dtype)1.0f), index, dst);
118118
}
119119
}

0 commit comments

Comments
 (0)