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

Function node_tallocr

ggml-alloc.c:441–447  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

439}
440
441static ggml_tallocr_t node_tallocr(ggml_gallocr_t galloc, struct ggml_tensor * node) {
442 if (galloc->talloc != NULL) {
443 return galloc->talloc;
444 }
445
446 return galloc->hash_allocs[ggml_hash_find_or_insert(galloc->hash_set, node)];
447}
448
449static void init_view(ggml_gallocr_t galloc, struct ggml_tensor * view, bool update_backend) {
450 ggml_tallocr_t alloc = node_tallocr(galloc, view);

Callers 3

init_viewFunction · 0.85
allocate_nodeFunction · 0.85
free_nodeFunction · 0.85

Calls 1

ggml_hash_find_or_insertFunction · 0.70

Tested by

no test coverage detected