Skip to content

Commit dce799d

Browse files
committed
add necessary mtmd APIs
1 parent 8d7d75a commit dce799d

File tree

5 files changed

+9822
-60
lines changed

5 files changed

+9822
-60
lines changed

tools/mtmd/clip-impl.h

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -262,7 +262,12 @@ struct clip_image_f32_batch {
262262
int grid_y = 0;
263263

264264
clip_image_f32_batch clone() const {
265-
clip_image_f32_batch new_batch;
265+
clip_image_f32_batch new_batch{
266+
/* entries */ {},
267+
/* is_audio */ is_audio,
268+
/* grid_x */ grid_x,
269+
/* grid_y */ grid_y,
270+
};
266271
new_batch.entries.reserve(entries.size());
267272
for (const auto & entry : entries) {
268273
new_batch.entries.emplace_back(new clip_image_f32(*entry));

0 commit comments

Comments
 (0)