mirror of
https://github.com/ggerganov/llama.cpp.git
synced 2025-01-12 19:50:17 +00:00
This commit is contained in:
parent
ee154457dd
commit
b8c9b8e468
@ -19202,6 +19202,7 @@ int ggml_graph_n_nodes(struct ggml_cgraph * cgraph) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
void ggml_graph_add_node(struct ggml_cgraph * cgraph, struct ggml_tensor * tensor) {
|
void ggml_graph_add_node(struct ggml_cgraph * cgraph, struct ggml_tensor * tensor) {
|
||||||
|
GGML_ASSERT(cgraph->size > cgraph->n_nodes);
|
||||||
cgraph->nodes[cgraph->n_nodes] = tensor;
|
cgraph->nodes[cgraph->n_nodes] = tensor;
|
||||||
cgraph->n_nodes++;
|
cgraph->n_nodes++;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user