graph : fix graph reuse reset of params (#14760)

ggml-ci
This commit is contained in:
Georgi Gerganov
2025-07-18 20:08:33 +03:00
committed by GitHub
parent 2adf8d83ac
commit 9fb1042ce6

View File

@ -428,6 +428,8 @@ void llm_graph_result::reset() {
t_embd = nullptr; t_embd = nullptr;
t_embd_pooled = nullptr; t_embd_pooled = nullptr;
params = {};
inputs.clear(); inputs.clear();
buf_compute_meta.resize(ggml_tensor_overhead()*max_nodes + ggml_graph_overhead_custom(max_nodes, false)); buf_compute_meta.resize(ggml_tensor_overhead()*max_nodes + ggml_graph_overhead_custom(max_nodes, false));