Skip to content

Commit 4540d61

Browse files
EZForeverqnixsynapse
authored andcommitted
opencl : skip empty nodes on cgraph compute (ggml-org#14491)
1 parent f2a2a58 commit 4540d61

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ggml/src/ggml-opencl/ggml-opencl.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2187,7 +2187,7 @@ static ggml_status ggml_backend_opencl_graph_compute(ggml_backend_t backend, ggm
21872187
// dependencies.
21882188
sync_with_other_backends(backend);
21892189

2190-
if (node->op == GGML_OP_RESHAPE || node->op == GGML_OP_TRANSPOSE || node->op == GGML_OP_VIEW || node->op == GGML_OP_PERMUTE || node->op == GGML_OP_NONE) {
2190+
if (ggml_is_empty(node) || node->op == GGML_OP_RESHAPE || node->op == GGML_OP_TRANSPOSE || node->op == GGML_OP_VIEW || node->op == GGML_OP_PERMUTE || node->op == GGML_OP_NONE) {
21912191
continue;
21922192
}
21932193

0 commit comments

Comments
 (0)