Sfoglia il codice sorgente

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

ggml-ci
Georgi Gerganov 6 mesi fa
parent
commit
9fb1042ce6
1 ha cambiato i file con 2 aggiunte e 0 eliminazioni
  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        = 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));