File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -6383,7 +6383,7 @@ struct ggml_tensor * ggml_clamp(
6383
6383
6384
6384
ggml_scratch_save(ctx);
6385
6385
6386
- struct ggml_tensor * b = ggml_new_tensor_1d(ctx, GGML_TYPE_I32 , 3);
6386
+ struct ggml_tensor * b = ggml_new_tensor_1d(ctx, GGML_TYPE_F32 , 3);
6387
6387
6388
6388
((float *) b->data)[0] = min;
6389
6389
((float *) b->data)[1] = max;
@@ -11139,8 +11139,8 @@ static void ggml_compute_forward_clamp_f32(
11139
11139
return;
11140
11140
}
11141
11141
11142
- const int min = ((float *) src1->data)[0];
11143
- const int max = ((float *) src1->data)[1];
11142
+ const float min = ((float *) src1->data)[0];
11143
+ const float max = ((float *) src1->data)[1];
11144
11144
11145
11145
const int ith = params->ith;
11146
11146
const int nth = params->nth;
You can’t perform that action at this time.
0 commit comments