API for debugging
| 3860 | // API for debugging |
| 3861 | // |
| 3862 | void 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 | } |
nothing calls this directly
no test coverage detected