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

Function ggml_gallocr_free

ggml-alloc.c:367–385  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

365}
366
367void ggml_gallocr_free(ggml_gallocr_t galloc) {
368 if (galloc == NULL) {
369 return;
370 }
371
372 if (galloc->hash_set.keys != NULL) {
373 free(galloc->hash_set.keys);
374 }
375 if (galloc->hash_values != NULL) {
376 free(galloc->hash_values);
377 }
378 if (galloc->hash_allocs != NULL) {
379 free(galloc->hash_allocs);
380 }
381 if (galloc->parse_seq != NULL) {
382 free(galloc->parse_seq);
383 }
384 free(galloc);
385}
386
387void ggml_gallocr_set_parse_seq(ggml_gallocr_t galloc, const int * list, int n) {
388 free(galloc->parse_seq);

Callers 2

ggml_allocr_freeFunction · 0.70
ggml_backend_sched_freeFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected