minor formatting fixes
This commit is contained in:
parent
1b38ccf63c
commit
6c36c03815
|
|
@ -63,8 +63,8 @@ struct clip_hparams {
|
||||||
|
|
||||||
// deepseek-ocr (sam)
|
// deepseek-ocr (sam)
|
||||||
int32_t sam_n_layer = 0;
|
int32_t sam_n_layer = 0;
|
||||||
int32_t sam_n_head = 0;
|
int32_t sam_n_head = 0;
|
||||||
int32_t sam_n_embd = 0;
|
int32_t sam_n_embd = 0;
|
||||||
|
|
||||||
// audio
|
// audio
|
||||||
int32_t n_mel_bins = 0; // whisper preprocessor
|
int32_t n_mel_bins = 0; // whisper preprocessor
|
||||||
|
|
@ -297,7 +297,7 @@ struct clip_model {
|
||||||
// deepseek ocr sam
|
// deepseek ocr sam
|
||||||
ggml_tensor * patch_embed_proj_w = nullptr;
|
ggml_tensor * patch_embed_proj_w = nullptr;
|
||||||
ggml_tensor * patch_embed_proj_b = nullptr;
|
ggml_tensor * patch_embed_proj_b = nullptr;
|
||||||
ggml_tensor * pos_embed = nullptr;
|
ggml_tensor * pos_embed = nullptr;
|
||||||
|
|
||||||
ggml_tensor * neck_0_w;
|
ggml_tensor * neck_0_w;
|
||||||
ggml_tensor * neck_1_w;
|
ggml_tensor * neck_1_w;
|
||||||
|
|
|
||||||
|
|
@ -753,8 +753,6 @@ ggml_tensor * clip_graph::build_patch_merge_permute(ggml_tensor * cur, int scale
|
||||||
return cur;
|
return cur;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
static ggml_cgraph * clip_image_build_graph(clip_ctx * ctx, const clip_image_f32_batch & imgs) {
|
static ggml_cgraph * clip_image_build_graph(clip_ctx * ctx, const clip_image_f32_batch & imgs) {
|
||||||
GGML_ASSERT(imgs.entries.size() == 1 && "n_batch > 1 is not supported");
|
GGML_ASSERT(imgs.entries.size() == 1 && "n_batch > 1 is not supported");
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue