diff options
author | Ting Lou <ting.lou@gmail.com> | 2024-03-15 22:31:05 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-03-15 16:31:05 +0200 |
commit | 4e9a7f7f7fb6acbddd1462909c8d696e38edbfcc (patch) | |
tree | ab143ac6abdfde24d4e6d13e2a05d1f1b4f9c4e6 /examples/llava/llava.h | |
parent | 3020327f6cd6d2ce50528dd65f4b199d2ea8b1ae (diff) |
llava : change API to pure C style for Rust FFI bindgen (#6079)
Co-authored-by: Lou Ting <louting.t@alibaba-inc.com>
Diffstat (limited to 'examples/llava/llava.h')
-rw-r--r-- | examples/llava/llava.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/examples/llava/llava.h b/examples/llava/llava.h index 2d40f3f1..19212f6e 100644 --- a/examples/llava/llava.h +++ b/examples/llava/llava.h @@ -29,9 +29,9 @@ struct llava_image_embed { }; /** sanity check for clip <-> llava embed size match */ -LLAVA_API bool llava_validate_embed_size(const llama_context * ctx_llama, const clip_ctx * ctx_clip); +LLAVA_API bool llava_validate_embed_size(const struct llama_context * ctx_llama, const struct clip_ctx * ctx_clip); -LLAVA_API bool llava_image_embed_make_with_clip_img(clip_ctx * ctx_clip, int n_threads, const clip_image_u8 * img, float ** image_embd_out, int * n_img_pos_out); +LLAVA_API bool llava_image_embed_make_with_clip_img(struct clip_ctx * ctx_clip, int n_threads, const struct clip_image_u8 * img, float ** image_embd_out, int * n_img_pos_out); /** build an image embed from image file bytes */ LLAVA_API struct llava_image_embed * llava_image_embed_make_with_bytes(struct clip_ctx * ctx_clip, int n_threads, const unsigned char * image_bytes, int image_bytes_length); |