Skip to content

Commit 662d4c1

Browse files
committed
fix type-check
1 parent 32b47f6 commit 662d4c1

File tree

2 files changed

+2
-486
lines changed

2 files changed

+2
-486
lines changed

examples/llava/clip.cpp

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
// I'll gradually clean and extend it
44
// Note: Even when using identical normalized image inputs (see normalize_image_u8_to_f32()) we have a significant difference in resulting embeddings compared to pytorch
55
#include "clip.h"
6-
#include "common.h"
76
#include "log.h"
87
#include "ggml.h"
98
#include "ggml-alloc.h"
@@ -1485,8 +1484,7 @@ struct clip_ctx * clip_model_load(const char * fname, const int verbosity = 1) {
14851484
new_clip->compute_alloc = ggml_gallocr_new(ggml_backend_get_default_buffer_type(new_clip->backend));
14861485
clip_image_f32_batch batch;
14871486
batch.size = 1;
1488-
ggml_cgraph * gf = clip_image_build_graph(new_clip, &batch, nullptr, false);
1489-
LOG_TEE("%s: flag\n", __func__);
1487+
ggml_cgraph * gf = clip_image_build_graph(new_clip, &batch, nullptr, false);
14901488
ggml_gallocr_reserve(new_clip->compute_alloc, gf);
14911489
size_t compute_memory_buffer_size = ggml_gallocr_get_buffer_size(new_clip->compute_alloc, 0);
14921490
LOG_TEE("%s: compute allocated memory: %.2f MB\n", __func__, compute_memory_buffer_size /1024.0/1024.0);
@@ -2608,7 +2606,7 @@ int clip_n_mmproj_embd(const struct clip_ctx * ctx) {
26082606
throw std::runtime_error(format("%s: don't support projector with: %s currently\n", __func__, proj_type.c_str()));
26092607
}
26102608

2611-
int clip_is_minicpmv(const struct clip_ctx * ctx) {
2609+
int clip_is_minicpmv(const struct clip_ctx * ctx) {
26122610
if (ctx->has_minicpmv_projector) {
26132611
return ctx->minicpmv_version;
26142612
}

0 commit comments

Comments
 (0)