| 15235 | }; |
| 15236 | |
| 15237 | static struct hash_map * ggml_new_hash_map(size_t size) { |
| 15238 | struct hash_map * result = malloc(sizeof(struct hash_map)); |
| 15239 | result->set = ggml_hash_set_new(size); |
| 15240 | result->vals = malloc(sizeof(struct ggml_tensor *) * result->set.size); |
| 15241 | memset(result->vals, 0, sizeof(struct ggml_tensor *) * result->set.size); |
| 15242 | return result; |
| 15243 | } |
| 15244 | |
| 15245 | static void ggml_hash_map_free(struct hash_map * map) { |
| 15246 | ggml_hash_set_free(map->set); |
no test coverage detected