| 3113 | } |
| 3114 | |
| 3115 | bool clip_image_encode(struct clip_ctx * ctx, const int n_threads, clip_image_f32 * img, float * vec) { |
| 3116 | clip_image_f32_batch imgs; |
| 3117 | clip_image_f32_ptr img_copy(clip_image_f32_init()); |
| 3118 | *img_copy = *img; |
| 3119 | imgs.entries.push_back(std::move(img_copy)); |
| 3120 | |
| 3121 | return clip_image_batch_encode(ctx, n_threads, &imgs, vec); |
| 3122 | } |
| 3123 | |
| 3124 | bool clip_image_batch_encode(clip_ctx * ctx, const int n_threads, const clip_image_f32_batch * imgs_c_ptr, float * vec) { |
| 3125 | const clip_image_f32_batch & imgs = *imgs_c_ptr; |
no test coverage detected