Skip to content

Commit

Permalink
ggml : fix multi-threaded clamp_f32 (ggml-org#11824)
Browse files Browse the repository at this point in the history
* 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
  • Loading branch information
Burton2000 authored Feb 12, 2025
1 parent 198b1ec commit 748ee9f
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions ggml/src/ggml-cpu/ggml-cpu.c
Original file line number Diff line number Diff line change
Expand Up @@ -9074,10 +9074,6 @@ static void ggml_compute_forward_clamp_f32(

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

if (params->ith != 0) {
return;
}

float min;
float max;
memcpy(&min, (float *) dst->op_params + 0, sizeof(float));
Expand Down

0 comments on commit 748ee9f

Please sign in to comment.