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

Function ggml_gallocr_new

ggml-alloc.c:351–365  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

349};
350
351ggml_gallocr_t ggml_gallocr_new(void) {
352 ggml_gallocr_t galloc = (ggml_gallocr_t)malloc(sizeof(struct ggml_gallocr));
353
354 *galloc = (struct ggml_gallocr) {
355 /*.talloc = */ NULL,
356 /*.hash_set = */ {0},
357 /*.hash_values = */ NULL,
358 /*.hash_values_size = */ 0,
359 /*.hash_allocs = */ NULL,
360 /*.parse_seq = */ NULL,
361 /*.parse_seq_len = */ 0,
362 };
363
364 return galloc;
365}
366
367void ggml_gallocr_free(ggml_gallocr_t galloc) {
368 if (galloc == NULL) {

Callers 2

ggml_allocr_new_implFunction · 0.70
ggml_backend_sched_newFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected