Merge pull request #18360 from tomoaki0705:fixClampFailure

pull/18362/head
Alexander Alekhin 4 years ago
commit 3e3787ecb6
  1. 2
      modules/dnn/src/opencl/prior_box.cl

@ -114,6 +114,6 @@ __kernel void clip(const int nthreads,
for (int index = get_global_id(0); index < nthreads; index += get_global_size(0)) for (int index = get_global_id(0); index < nthreads; index += get_global_size(0))
{ {
Dtype4 vec = vload4(index, dst); Dtype4 vec = vload4(index, dst);
vstore4(clamp(vec, 0.0f, 1.0f), index, dst); vstore4(clamp(vec, (Dtype)0.0f, (Dtype)1.0f), index, dst);
} }
} }

Loading…
Cancel
Save