Skip to content

Commit

Permalink
ggml/sched : do not skip views in pre-assignments
Browse files Browse the repository at this point in the history
  • Loading branch information
slaren authored and ggerganov committed Nov 20, 2024
1 parent 7fd8d9c commit 9db070a
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions ggml/src/ggml-backend.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -884,9 +884,6 @@ static void ggml_backend_sched_split_graph(ggml_backend_sched_t sched, struct gg
for (int i = 0; i < graph->n_nodes; i++) {
struct ggml_tensor * node = graph->nodes[i];
int * node_backend_id = &tensor_backend_id(node);
if (ggml_is_view_op(node->op)) {
continue;
}
// do not overwrite user assignments
if (*node_backend_id == -1) {
*node_backend_id = ggml_backend_sched_backend_id_from_cur(sched, node);
Expand Down

0 comments on commit 9db070a

Please sign in to comment.