Skip to content

Commit 300a50e

Browse files
committed
cont : fix wrong bounds check condition
1 parent c8f1ae5 commit 300a50e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ggml/src/ggml-impl.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -578,7 +578,7 @@ static inline bool ggml_node_has_n_uses(const struct ggml_cgraph * cgraph, int n
578578
// TODO: Consider allowing GGML_OP_NONE nodes in between
579579
static inline bool ggml_can_fuse_ext(const struct ggml_cgraph * cgraph, const int * node_idxs, const enum ggml_op * ops, int num_ops) {
580580
for (int i = 0; i < num_ops; ++i) {
581-
if (node_idxs[i] + num_ops > cgraph->n_nodes) {
581+
if (node_idxs[i] >= cgraph->n_nodes) {
582582
return false;
583583
}
584584

0 commit comments

Comments
 (0)