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

Function ggml_hash_find_or_insert

ggml.c:15210–15217  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

15208}
15209
15210size_t ggml_hash_find_or_insert(struct ggml_hash_set hash_set, struct ggml_tensor * key) {
15211 size_t i = ggml_hash_find(hash_set, key);
15212
15213 GGML_ASSERT(i != GGML_HASHTABLE_FULL);
15214
15215 hash_set.keys[i] = key;
15216 return i;
15217}
15218
15219static struct ggml_hash_set ggml_hash_set_new(size_t size) {
15220 size = ggml_hash_size(size);

Callers 2

hash_getFunction · 0.70
node_tallocrFunction · 0.70

Calls 1

ggml_hash_findFunction · 0.70

Tested by

no test coverage detected