Skip to content

Commit 0531096

Browse files
committed
rm redundant code
1 parent baa882a commit 0531096

File tree

2 files changed

+0
-2
lines changed

2 files changed

+0
-2
lines changed

tools/mtmd/clip.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2602,7 +2602,6 @@ struct clip_model_loader {
26022602
img->nx = hparams.warmup_audio_size;
26032603
img->ny = hparams.n_mel_bins;
26042604
}
2605-
img->buf.resize(img->nx * img->ny * 3);
26062605
batch.entries.push_back(std::move(img));
26072606

26082607
ggml_cgraph * gf = clip_image_build_graph(&ctx_clip, batch);

tools/mtmd/clip.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,6 @@ enum clip_modality {
2424

2525
struct clip_context_params {
2626
bool use_gpu;
27-
enum clip_modality modality;
2827
enum ggml_log_level verbosity;
2928
};
3029

0 commit comments

Comments
 (0)