summaryrefslogtreecommitdiff
path: root/examples/llava/llava.cpp
diff options
context:
space:
mode:
authorTing Lou <ting.lou@gmail.com>2024-03-15 22:31:05 +0800
committerGitHub <noreply@github.com>2024-03-15 16:31:05 +0200
commit4e9a7f7f7fb6acbddd1462909c8d696e38edbfcc (patch)
treeab143ac6abdfde24d4e6d13e2a05d1f1b4f9c4e6 /examples/llava/llava.cpp
parent3020327f6cd6d2ce50528dd65f4b199d2ea8b1ae (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.cpp')
-rw-r--r--examples/llava/llava.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/llava/llava.cpp b/examples/llava/llava.cpp
index 98012816..29764757 100644
--- a/examples/llava/llava.cpp
+++ b/examples/llava/llava.cpp
@@ -223,7 +223,7 @@ static bool encode_image_with_clip(clip_ctx * ctx_clip, int n_threads, const cli
clip_image_f32_batch img_res_v;
img_res_v.size = 0;
img_res_v.data = nullptr;
- if (!clip_image_preprocess(ctx_clip, img, img_res_v)) {
+ if (!clip_image_preprocess(ctx_clip, img, &img_res_v)) {
fprintf(stderr, "%s: unable to preprocess image\n", __func__);
delete[] img_res_v.data;
return false;