Skip to content

Commit 4b0d032

Browse files
Burton2000mglambda
authored andcommitted
ggml : fix multi-threaded clamp_f32 (ggml-org#11824)
* Bug fix for clamp_f32 When using tensors larger than 1d clamp operation does not work due to the restriction of returning if ith is not 0. * Bug fix for clamp_f32 * Bug fix for clamp_f32
1 parent 90c383e commit 4b0d032

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

ggml/src/ggml-cpu/ggml-cpu.c

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9074,10 +9074,6 @@ static void ggml_compute_forward_clamp_f32(
90749074

90759075
const struct ggml_tensor * src0 = dst->src[0];
90769076

9077-
if (params->ith != 0) {
9078-
return;
9079-
}
9080-
90819077
float min;
90829078
float max;
90839079
memcpy(&min, (float *) dst->op_params + 0, sizeof(float));

0 commit comments

Comments
 (0)