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

Function check_all_allocated

tests/test-alloc.cpp:187–193  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

185// correctness checks for result allocations
186
187static void check_all_allocated(ggml_cgraph * graph) {
188 for (int i = 0; i < ggml_graph_n_nodes(graph); ++i) {
189 ggml_tensor * t = ggml_graph_node(graph, i);
190 GGML_ASSERT(t->buffer != nullptr);
191 GGML_ASSERT(t->data != nullptr);
192 }
193}
194
195static void check_max_size(ggml_context * ctx) {
196 for (ggml_tensor * t = ggml_get_first_tensor(ctx); t; t = ggml_get_next_tensor(ctx, t)) {

Callers 12

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_buffer_size_zeroFunction · 0.85
test_reallocationFunction · 0.85

Calls 2

ggml_graph_n_nodesFunction · 0.85
ggml_graph_nodeFunction · 0.85

Tested by

no test coverage detected