MCPcopy Create free account
hub / github.com/appdevforall/CodeOnTheGo / assign_names

Function assign_names

subprojects/llama.cpp/tests/test-alloc.cpp:147–152  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

145}
146
147static void assign_names(ggml_context * ctx, const char * prefix = "x") {
148 int i = 0;
149 for (ggml_tensor * t = ggml_get_first_tensor(ctx); t; t = ggml_get_next_tensor(ctx, t)) {
150 ggml_format_name(t, "%s%d", prefix, i++);
151 }
152}
153
154static int get_leaf_id(ggml_cgraph * graph, const char * tensor_name) {
155 for (int i = 0; i < graph->n_leafs; ++i) {

Callers 11

test_not_enough_chunksFunction · 0.85
test_fill_leftover_spaceFunction · 0.85
test_view_inplaceFunction · 0.85
test_reuse_and_freeFunction · 0.85
test_merge_free_blockFunction · 0.85
test_reallocationFunction · 0.85

Calls 3

ggml_get_first_tensorFunction · 0.85
ggml_get_next_tensorFunction · 0.85
ggml_format_nameFunction · 0.85

Tested by

no test coverage detected