| 385 | } |
| 386 | |
| 387 | void ggml_gallocr_set_parse_seq(ggml_gallocr_t galloc, const int * list, int n) { |
| 388 | free(galloc->parse_seq); |
| 389 | galloc->parse_seq = malloc(sizeof(int) * n); |
| 390 | |
| 391 | for (int i = 0; i < n; i++) { |
| 392 | galloc->parse_seq[i] = list[i]; |
| 393 | } |
| 394 | galloc->parse_seq_len = n; |
| 395 | } |
| 396 | |
| 397 | static struct hash_node * hash_get(ggml_gallocr_t galloc, struct ggml_tensor * t) { |
| 398 | size_t i = ggml_hash_find_or_insert(galloc->hash_set, t); |
no outgoing calls
no test coverage detected