Merge 4a95b44864 into 3bc8d2cf23
This commit is contained in:
commit
f52fe784c8
|
|
@ -1081,6 +1081,9 @@ bool ggml_gallocr_alloc_graph(ggml_gallocr_t galloc, struct ggml_cgraph * graph)
|
|||
for (int i = 0; i < graph->n_leafs; i++) {
|
||||
struct ggml_tensor * leaf = graph->leafs[i];
|
||||
struct leaf_alloc * leaf_alloc = &galloc->leaf_allocs[i];
|
||||
if (leaf_alloc->leaf.buffer_id == -1) {
|
||||
continue;
|
||||
}
|
||||
ggml_gallocr_init_tensor(galloc, leaf, &leaf_alloc->leaf);
|
||||
}
|
||||
// nodes
|
||||
|
|
|
|||
Loading…
Reference in New Issue