Skip to content

Commit 000714c

Browse files
Potential fix for pull request finding 'CodeQL / Multiplication result converted to larger type'
Co-authored-by: Copilot Autofix powered by AI <62310815+github-advanced-security[bot]@users.noreply.github.com>
1 parent 87fcb68 commit 000714c

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

engines/tts/src/cosyvoice_pipeline.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -175,7 +175,7 @@ ggml_tensor * build_qwen(ggml_context * c, const model_ctx & m, const qwen_hp &
175175
ggml_tensor * o = ggml_mul_mat(c, vt, sc);
176176
o = ggml_cont(c, ggml_permute(c, o, 0, 3, 1, 2));
177177
o = ggml_reshape_3d(c, o, HD, NH, L);
178-
o = ggml_reshape_2d(c, o, HD * NH, L);
178+
o = ggml_reshape_2d(c, o, static_cast<int64_t>(HD) * NH, L);
179179
o = ggml_mul_mat(c, G(m, lb(i, "o_proj/weight")), o);
180180
x = ggml_add(c, x, o);
181181
ggml_tensor * hn = rmsnorm(c, x, G(m, lb(i, "post_ln/weight")), hp.eps);

0 commit comments

Comments
 (0)