rename tts.cpp ggml_round to ggml_ttsround to avoid conflict

This commit is contained in:
Concedo
2025-10-16 14:24:44 +08:00
parent ebc1cb0641
commit c18d7991c8
4 changed files with 19 additions and 19 deletions
+2 -2
View File
@@ -1041,8 +1041,8 @@ struct ggml_cgraph * kokoro_duration_runner::build_kokoro_duration_graph(kokoro_
cur = build_lstm(ctx, cur, model->prosody_pred->duration_proj_lstm, batch.n_tokens, gf);
cur = ggml_sigmoid(ctx, ggml_add(ctx, ggml_mul_mat(ctx, model->prosody_pred->duration_proj, cur), model->prosody_pred->duration_proj_bias));
// If we were to support speed we would add a constant tensor for the speed and divide here.
len = ggml_round(ctx, ggml_sum_rows(ctx, cur));
len = ggml_clamp(ctx, ggml_round(ctx, ggml_sum_rows(ctx, cur)), 1.0f, 50.0f);
len = ggml_ttsround(ctx, ggml_sum_rows(ctx, cur));
len = ggml_clamp(ctx, ggml_ttsround(ctx, ggml_sum_rows(ctx, cur)), 1.0f, 50.0f);
ggml_build_forward_expand(gf, len);