Skip to content

Commit d954af4

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

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

examples/llava/clip.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1530,8 +1530,8 @@ struct clip_ctx * clip_model_load(const char * fname, const int verbosity = 1) {
15301530
LOG_INF("v_image_mean %f %f %f\n", new_clip->image_mean[0], new_clip->image_mean[1], new_clip->image_mean[2]);
15311531
LOG_INF("v_image_std %f %f %f\n", new_clip->image_std[0], new_clip->image_std[1], new_clip->image_std[2]);
15321532
LOG_INF("v_image_grid_pinpoints: ");
1533-
for (size_t i = 0; i < hparams.image_grid_pinpoints.size(); ++i) {
1534-
LOG_INF("%d ", hparams.image_grid_pinpoints[i]);
1533+
for (const auto & pp : hparams.image_grid_pinpoints) {
1534+
LOG_INF("%d ", pp);
15351535
}
15361536
LOG_INF("\n");
15371537
LOG_INF("v_vision_feature_layer: ");

0 commit comments

Comments
 (0)