| 439 | } |
| 440 | |
| 441 | static ggml_tallocr_t node_tallocr(ggml_gallocr_t galloc, struct ggml_tensor * node) { |
| 442 | if (galloc->talloc != NULL) { |
| 443 | return galloc->talloc; |
| 444 | } |
| 445 | |
| 446 | return galloc->hash_allocs[ggml_hash_find_or_insert(galloc->hash_set, node)]; |
| 447 | } |
| 448 | |
| 449 | static void init_view(ggml_gallocr_t galloc, struct ggml_tensor * view, bool update_backend) { |
| 450 | ggml_tallocr_t alloc = node_tallocr(galloc, view); |
no test coverage detected