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 21, 2024
1 parent 02e4eaf commit 59b9172
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 @@ -886,9 +886,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 59b9172

Please sign in to comment.