Skip to content

Commit e6f3c06

Browse files
committed
build fix
1 parent 5e13dcf commit e6f3c06

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

ggml/src/ggml-impl.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -501,12 +501,12 @@ static inline bool ggml_node_has_N_uses(const struct ggml_tensor * node, int32_t
501501
// - all nodes are the same shape.
502502
// TODO: Consider allowing GGML_OP_NONE nodes in between
503503
static bool ggml_can_fuse(struct ggml_cgraph * cgraph, int node_idx, std::initializer_list<enum ggml_op> ops) {
504-
size_t num_ops = ops.size();
504+
int num_ops = (int)ops.size();
505505
if (node_idx + num_ops > cgraph->n_nodes) {
506506
return false;
507507
}
508508

509-
for (size_t i = 0; i < num_ops; ++i) {
509+
for (int i = 0; i < num_ops; ++i) {
510510
struct ggml_tensor *node = cgraph->nodes[node_idx + i];
511511
if (node->op != ops.begin()[i]) {
512512
return false;

0 commit comments

Comments
 (0)