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

Function ggml_new_hash_map

subprojects/llama.cpp/ggml/src/ggml.c:6155–6160  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

6153};
6154
6155static struct hash_map * ggml_new_hash_map(size_t size) {
6156 struct hash_map * result = GGML_MALLOC(sizeof(struct hash_map));
6157 result->set = ggml_hash_set_new(size);
6158 result->vals = GGML_CALLOC(result->set.size, sizeof(struct ggml_tensor *));
6159 return result;
6160}
6161
6162static void ggml_hash_map_free(struct hash_map * map) {
6163 ggml_hash_set_free(&map->set);

Callers

nothing calls this directly

Calls 1

ggml_hash_set_newFunction · 0.85

Tested by

no test coverage detected