MCPcopy Create free account
hub / github.com/appdevforall/CodeOnTheGo / ggml_hash_contains

Function ggml_hash_contains

subprojects/llama.cpp/ggml/src/ggml-impl.h:268–271  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

266}
267
268static bool ggml_hash_contains(const struct ggml_hash_set * hash_set, struct ggml_tensor * key) {
269 size_t i = ggml_hash_find(hash_set, key);
270 return i != GGML_HASHSET_FULL && ggml_bitset_get(hash_set->used, i);
271}
272
273static size_t ggml_hash_insert(struct ggml_hash_set * hash_set, struct ggml_tensor * key) {
274 size_t h = ggml_hash(key) % hash_set->size;

Callers

nothing calls this directly

Calls 2

ggml_hash_findFunction · 0.85
ggml_bitset_getFunction · 0.85

Tested by

no test coverage detected