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

Function ggml_tallocr_free

ggml-alloc.c:315–324  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

313}
314
315void ggml_tallocr_free(ggml_tallocr_t alloc) {
316 if (alloc == NULL) {
317 return;
318 }
319
320 if (alloc->buffer_owned) {
321 ggml_backend_buffer_free(alloc->buffer);
322 }
323 free(alloc);
324}
325
326bool ggml_tallocr_is_measure(ggml_tallocr_t alloc) {
327 return alloc->measure;

Callers 3

ggml_allocr_freeFunction · 0.85
ggml_backend_sched_freeFunction · 0.85

Calls 1

ggml_backend_buffer_freeFunction · 0.70

Tested by

no test coverage detected