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

Function ggml_gallocr_set_parse_seq

ggml-alloc.c:387–395  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

385}
386
387void ggml_gallocr_set_parse_seq(ggml_gallocr_t galloc, const int * list, int n) {
388 free(galloc->parse_seq);
389 galloc->parse_seq = malloc(sizeof(int) * n);
390
391 for (int i = 0; i < n; i++) {
392 galloc->parse_seq[i] = list[i];
393 }
394 galloc->parse_seq_len = n;
395}
396
397static struct hash_node * hash_get(ggml_gallocr_t galloc, struct ggml_tensor * t) {
398 size_t i = ggml_hash_find_or_insert(galloc->hash_set, t);

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected