Skip to content

Commit db56553

Browse files
committed
cont : add comment
1 parent 778f0ba commit db56553

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

ggml/src/ggml-metal/ggml-metal-ops.cpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,10 @@ struct ggml_metal_op {
4949
this->gf = gf;
5050

5151
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
5256
for (int i = idx_start; i < idx_end; i++) {
5357
if (!ggml_op_is_empty(gf->nodes[i]->op) && !ggml_is_empty(gf->nodes[i])) {
5458
idxs.push_back(i);

0 commit comments

Comments
 (0)