Pārlūkot izejas kodu

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

ggml-ci
Georgi Gerganov 6 mēneši atpakaļ
vecāks
revīzija
9fb1042ce6
1 mainītis faili ar 2 papildinājumiem un 0 dzēšanām
  1. 2 0
      src/llama-graph.cpp

+ 2 - 0
src/llama-graph.cpp

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