We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 778f0ba commit db56553Copy full SHA for db56553
ggml/src/ggml-metal/ggml-metal-ops.cpp
@@ -49,6 +49,10 @@ struct ggml_metal_op {
49
this->gf = gf;
50
51
idxs.reserve(gf->n_nodes);
52
+
53
+ // filter empty nodes
54
+ // TODO: this can be removed when the allocator starts filtering them earlier
55
+ // https://github.com/ggml-org/llama.cpp/pull/16130#issuecomment-3327905830
56
for (int i = idx_start; i < idx_end; i++) {
57
if (!ggml_op_is_empty(gf->nodes[i]->op) && !ggml_is_empty(gf->nodes[i])) {
58
idxs.push_back(i);
0 commit comments