Skip to content

Commit c06e45d

Browse files
committed
clip : fix wrong loop condition
1 parent 9060a1e commit c06e45d

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
@@ -1103,7 +1103,7 @@ struct clip_ctx * clip_model_load(const char * fname, const int verbosity = 1) {
11031103
printf("v_image_mean %f %f %f\n", new_clip->image_mean[0], new_clip->image_mean[1], new_clip->image_mean[2]);
11041104
printf("v_image_std %f %f %f\n", new_clip->image_std[0], new_clip->image_std[1], new_clip->image_std[2]);
11051105
printf("v_image_grid_pinpoints: ");
1106-
for (int i = 0; i < 32 & hparams.image_grid_pinpoints[i]!=0; ++i) {
1106+
for (int i = 0; i < 32 && (hparams.image_grid_pinpoints[i] != 0); ++i) {
11071107
printf("%d ", hparams.image_grid_pinpoints[i]);
11081108
}
11091109
printf("\n");

0 commit comments

Comments
 (0)