Spaces:
Running
Running
slaren
commited on
Commit
·
b1eba61
1
Parent(s):
ec6f374
ggml/sched : do not skip views in pre-assignments
Browse files
ggml/src/ggml-backend.cpp
CHANGED
|
@@ -884,9 +884,6 @@ static void ggml_backend_sched_split_graph(ggml_backend_sched_t sched, struct gg
|
|
| 884 |
for (int i = 0; i < graph->n_nodes; i++) {
|
| 885 |
struct ggml_tensor * node = graph->nodes[i];
|
| 886 |
int * node_backend_id = &tensor_backend_id(node);
|
| 887 |
-
if (ggml_is_view_op(node->op)) {
|
| 888 |
-
continue;
|
| 889 |
-
}
|
| 890 |
// do not overwrite user assignments
|
| 891 |
if (*node_backend_id == -1) {
|
| 892 |
*node_backend_id = ggml_backend_sched_backend_id_from_cur(sched, node);
|
|
|
|
| 884 |
for (int i = 0; i < graph->n_nodes; i++) {
|
| 885 |
struct ggml_tensor * node = graph->nodes[i];
|
| 886 |
int * node_backend_id = &tensor_backend_id(node);
|
|
|
|
|
|
|
|
|
|
| 887 |
// do not overwrite user assignments
|
| 888 |
if (*node_backend_id == -1) {
|
| 889 |
*node_backend_id = ggml_backend_sched_backend_id_from_cur(sched, node);
|