Skip to content

Commit 14b5868

Browse files
committed
No breaking change
1 parent c276a91 commit 14b5868

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

examples/llava/clip.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2323,7 +2323,7 @@ int clip_n_patches(const struct clip_ctx * ctx) {
23232323
return clip_n_patches_by_img_dims(ctx, ctx->vision_model.hparams.image_size, ctx->vision_model.hparams.image_size);
23242324
}
23252325

2326-
int clip_n_patches_by_img_f32(const struct clip_ctx * ctx, struct clip_image_f32 * img) {
2326+
int clip_n_patches_by_img(const struct clip_ctx * ctx, struct clip_image_f32 * img) {
23272327
return clip_n_patches_by_img_dims(ctx, img->nx, img->ny);
23282328
}
23292329

examples/llava/clip.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ CLIP_API const int32_t * clip_image_grid(const struct clip_ctx * ctx);
5959
CLIP_API size_t get_clip_image_grid_size(const struct clip_ctx * ctx);
6060

6161
CLIP_API int clip_n_patches(const struct clip_ctx * ctx);
62-
CLIP_API int clip_n_patches_by_img_f32(const struct clip_ctx * ctx, struct clip_image_f32 * img);
62+
CLIP_API int clip_n_patches_by_img(const struct clip_ctx * ctx, struct clip_image_f32 * img);
6363
CLIP_API int clip_n_patches_by_img_u8(const struct clip_ctx * ctx, struct clip_image_u8 * img);
6464
CLIP_API int clip_n_mmproj_embd(const struct clip_ctx * ctx);
6565

examples/llava/llava.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -313,7 +313,7 @@ static bool encode_image_with_clip(clip_ctx * ctx_clip, int n_threads, const cli
313313
image_embd + n_img_pos_out * clip_n_mmproj_embd(ctx_clip),
314314
image_embd_v[i],
315315
clip_embd_nbytes_by_img(ctx_clip, nx, ny));
316-
n_img_pos_out += clip_n_patches_by_img_f32(ctx_clip, img_res);
316+
n_img_pos_out += clip_n_patches_by_img(ctx_clip, img_res);
317317
}
318318
*n_img_pos = n_img_pos_out;
319319
for (size_t i = 0; i < image_embd_v.size(); i++) {

0 commit comments

Comments
 (0)