| 3315 | } |
| 3316 | |
| 3317 | bool 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 | |
| 3326 | bool 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; |
no test coverage detected