MCPcopy Create free account
hub / github.com/appdevforall/CodeOnTheGo / clip_image_encode

Function clip_image_encode

subprojects/llama.cpp/tools/mtmd/clip.cpp:3317–3324  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3315}
3316
3317bool clip_image_encode(struct clip_ctx * ctx, const int n_threads, clip_image_f32 * img, float * vec) {
3318 clip_image_f32_batch imgs;
3319 clip_image_f32_ptr img_copy(clip_image_f32_init());
3320 *img_copy = *img;
3321 imgs.entries.push_back(std::move(img_copy));
3322
3323 return clip_image_batch_encode(ctx, n_threads, &imgs, vec);
3324}
3325
3326bool clip_image_batch_encode(clip_ctx * ctx, const int n_threads, const clip_image_f32_batch * imgs_c_ptr, float * vec) {
3327 const clip_image_f32_batch & imgs = *imgs_c_ptr;

Callers 3

clip_encode_float_imageFunction · 0.85
clip_debug_encodeFunction · 0.85
mtmd_encodeFunction · 0.85

Calls 3

clip_image_f32_initFunction · 0.85
clip_image_batch_encodeFunction · 0.85
push_backMethod · 0.45

Tested by

no test coverage detected