| 6153 | }; |
| 6154 | |
| 6155 | static 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 | |
| 6162 | static void ggml_hash_map_free(struct hash_map * map) { |
| 6163 | ggml_hash_set_free(&map->set); |
nothing calls this directly
no test coverage detected