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

Function clip_debug_encode

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

API for debugging

Source from the content-addressed store, hash-verified

3860// API for debugging
3861//
3862void clip_debug_encode(clip_ctx * ctx, int h, int w, float fill_value) {
3863 clip_image_f32 img;
3864 img.nx = w;
3865 img.ny = h;
3866 img.buf.resize(h * w * 3);
3867 for (int i = 0; i < h * w * 3; i++) {
3868 img.buf[i] = static_cast<float>(fill_value);
3869 }
3870 clip_image_encode(ctx, 1, &img, nullptr);
3871 GGML_ASSERT(img.buf.empty() && "expected, always stop here");
3872}

Callers

nothing calls this directly

Calls 3

clip_image_encodeFunction · 0.85
emptyMethod · 0.65
resizeMethod · 0.45

Tested by

no test coverage detected