Skip to content

Commit 794dbc2

Browse files
Update examples/llava/clip.cpp
Co-authored-by: Xuan-Son Nguyen <[email protected]>
1 parent bc18073 commit 794dbc2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

examples/llava/clip.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -885,7 +885,7 @@ static ggml_cgraph * clip_image_build_graph(clip_ctx * ctx, const clip_image_f32
885885
// If feature layers are explicitly set, stack them (if we have multiple)
886886
if (embedding_stack.size() > 0) {
887887
embeddings = embedding_stack.at(0);
888-
for (unsigned long i=1; i < embedding_stack.size(); i++) {
888+
for (size_t i = 1; i < embedding_stack.size(); i++) {
889889
embeddings = ggml_concat(ctx0, embeddings, embedding_stack.at(i), 0);
890890
}
891891
}

0 commit comments

Comments
 (0)