summaryrefslogtreecommitdiff
path: root/ggml-kompute.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'ggml-kompute.cpp')
-rw-r--r--ggml-kompute.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/ggml-kompute.cpp b/ggml-kompute.cpp
index 81dd5067..407062e6 100644
--- a/ggml-kompute.cpp
+++ b/ggml-kompute.cpp
@@ -1430,6 +1430,10 @@ static void ggml_vk_graph_compute(struct ggml_kompute_context * ctx, struct ggml
struct ggml_tensor * dst = gf->nodes[i];
GGML_ASSERT(dst->data != nullptr);
+ if (ggml_is_empty(dst)) {
+ continue;
+ }
+
switch (dst->op) {
case GGML_OP_NONE:
case GGML_OP_RESHAPE: