Skip to content

Commit 6602304

Browse files
authored
llava: fix errors in clip.h on certain compilers (#13030)
1 parent 6616820 commit 6602304

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

examples/llava/clip.h

+3-2
Original file line numberDiff line numberDiff line change
@@ -30,12 +30,13 @@ struct clip_image_size {
3030
int height;
3131
};
3232

33+
struct clip_image_f32;
3334
struct clip_image_u8_batch;
3435
struct clip_image_f32_batch;
3536

3637
struct clip_context_params {
3738
bool use_gpu;
38-
ggml_log_level verbosity;
39+
enum ggml_log_level verbosity;
3940
};
4041

4142
// deprecated, use clip_init
@@ -84,7 +85,7 @@ CLIP_API void clip_image_f32_batch_free(struct clip_image_f32_batch * batch);
8485
CLIP_API size_t clip_image_f32_batch_n_images(const struct clip_image_f32_batch * batch); // equivalent to batch->size()
8586
CLIP_API size_t clip_image_f32_batch_nx(const struct clip_image_f32_batch * batch, int idx); // equivalent to batch[idx]->nx
8687
CLIP_API size_t clip_image_f32_batch_ny(const struct clip_image_f32_batch * batch, int idx); // equivalent to batch[idx]->ny
87-
CLIP_API clip_image_f32 * clip_image_f32_get_img(const struct clip_image_f32_batch * batch, int idx); // equivalent to batch[idx]->data
88+
CLIP_API struct clip_image_f32 * clip_image_f32_get_img(const struct clip_image_f32_batch * batch, int idx); // equivalent to batch[idx]->data
8889

8990
/**
9091
* Build image from pixels decoded by other libraries instead of stb_image.h for better performance.

0 commit comments

Comments
 (0)