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

Function get_node_id

tests/test-alloc.cpp:164–172  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

162}
163
164static int get_node_id(ggml_cgraph * graph, const char * tensor_name) {
165 for (int i = 0; i < graph->n_nodes; ++i) {
166 if (strncmp(graph->nodes[i]->name, tensor_name, GGML_MAX_NAME) == 0) {
167 return i;
168 }
169 }
170 fprintf(stderr, "node not found: %s", tensor_name);
171 return -1;
172}
173
174static ggml_gallocr_ptr allocate_graph(ggml_cgraph * graph, ggml_tensor * out, ggml_backend_buffer_type_t buft) {
175 ggml_set_output(out);

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected