File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -6453,7 +6453,7 @@ struct ggml_tensor * ggml_clamp(
6453
6453
6454
6454
ggml_scratch_save(ctx);
6455
6455
6456
- struct ggml_tensor * b = ggml_new_tensor_1d(ctx, GGML_TYPE_F32, 3 );
6456
+ struct ggml_tensor * b = ggml_new_tensor_1d(ctx, GGML_TYPE_F32, 2 );
6457
6457
6458
6458
((float *) b->data)[0] = min;
6459
6459
((float *) b->data)[1] = max;
@@ -11263,7 +11263,7 @@ static void ggml_compute_forward_clamp_f32(
11263
11263
const struct ggml_tensor * src1,
11264
11264
struct ggml_tensor * dst) {
11265
11265
assert(params->ith == 0);
11266
- assert(src1->type == GGML_TYPE_I32 );
11266
+ assert(src1->type == GGML_TYPE_F32 );
11267
11267
assert(ggml_nelements(src1) == 2);
11268
11268
11269
11269
if (params->type == GGML_TASK_INIT || params->type == GGML_TASK_FINALIZE) {
You can’t perform that action at this time.
0 commit comments