Skip to content

Commit 07894dc

Browse files
authored
Bug fix for clamp_f32
1 parent 5167065 commit 07894dc

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

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

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9079,6 +9079,9 @@ static void ggml_compute_forward_clamp_f32(
90799079
memcpy(&min, (float *) dst->op_params + 0, sizeof(float));
90809080
memcpy(&max, (float *) dst->op_params + 1, sizeof(float));
90819081

9082+
const int ith = params->ith;
9083+
const int nth = params->nth;
9084+
90829085
const int n = ggml_nrows(src0);
90839086
const int nc = src0->ne[0];
90849087

0 commit comments

Comments
 (0)