Skip to content

Commit

Permalink
Fix undefined behavior in llava clip
Browse files Browse the repository at this point in the history
  • Loading branch information
jart committed Aug 18, 2024
1 parent 202e554 commit 65745b0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion llama.cpp/llava/clip.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -545,7 +545,7 @@ struct clip_ctx {
ggml_backend_t backend = NULL;
ggml_gallocr_t compute_alloc = NULL;

struct clip_image_size * load_image_size;
struct clip_image_size * load_image_size = NULL;
};

static ggml_cgraph * clip_image_build_graph(clip_ctx * ctx, const clip_image_f32_batch * imgs, struct clip_image_size * load_image_size, bool is_inf = false) {
Expand Down

0 comments on commit 65745b0

Please sign in to comment.