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

Function hash_get

ggml-alloc.c:397–400  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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);
399 return &galloc->hash_values[i];
400}
401
402static bool ggml_are_same_layout(const struct ggml_tensor * a, const struct ggml_tensor * b) {
403 if (a->type != b->type) {

Callers 2

allocate_nodeFunction · 0.85

Calls 1

ggml_hash_find_or_insertFunction · 0.70

Tested by

no test coverage detected