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

Function ggml_hash_set_new

ggml.c:15219–15226  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

15217}
15218
15219static struct ggml_hash_set ggml_hash_set_new(size_t size) {
15220 size = ggml_hash_size(size);
15221 struct ggml_hash_set result;
15222 result.size = size;
15223 result.keys = malloc(sizeof(struct ggml_tensor *) * size);
15224 memset(result.keys, 0, sizeof(struct ggml_tensor *) * size);
15225 return result;
15226}
15227
15228static void ggml_hash_set_free(struct ggml_hash_set hash_set) {
15229 free(hash_set.keys);

Callers 2

ggml_new_hash_mapFunction · 0.70

Calls 1

ggml_hash_sizeFunction · 0.70

Tested by

no test coverage detected