MCPcopy Create free account
hub / github.com/Tiiny-AI/PowerInfer / ggml_graph_clear

Function ggml_graph_clear

ggml.c:16456–16460  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

16454}
16455
16456void ggml_graph_clear(struct ggml_cgraph * cgraph) {
16457 cgraph->n_leafs = 0;
16458 cgraph->n_nodes = 0;
16459 memset(cgraph->visited_hash_table.keys, 0, cgraph->visited_hash_table.size * sizeof(struct ggml_tensor *));
16460}
16461
16462//
16463// thread data

Callers 1

ggml_build_forward_implFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected