MCPcopy Create free account
hub / github.com/antirez/llama.cpp-deepseek-v4-flash / get_leaf_id

Function get_leaf_id

tests/test-alloc.cpp:154–162  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

152}
153
154static int get_leaf_id(ggml_cgraph * graph, const char * tensor_name) {
155 for (int i = 0; i < graph->n_leafs; ++i) {
156 if (strncmp(graph->leafs[i]->name, tensor_name, GGML_MAX_NAME) == 0) {
157 return i;
158 }
159 }
160 fprintf(stderr, "leaf not found: %s\n", tensor_name);
161 return -1;
162}
163
164static int get_node_id(ggml_cgraph * graph, const char * tensor_name) {
165 for (int i = 0; i < graph->n_nodes; ++i) {

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected