Skip to content

Commit

Permalink
Take good advice and streamline code
Browse files Browse the repository at this point in the history
  • Loading branch information
tc-mb committed Oct 16, 2024
1 parent 93f85ea commit c1fb24f
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions examples/llava/clip.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1969,13 +1969,10 @@ bool clip_image_preprocess(struct clip_ctx * ctx, const clip_image_u8 * img, cli
for (size_t i = 0; i < imgs.size(); ++i) {
for (size_t j = 0; j < imgs[i].size(); ++j) {
if (imgs[i][j] != nullptr) {
imgs[i][j]->buf.clear();
delete imgs[i][j];
}
}
imgs[i].clear();
}
imgs.clear();
return true;
}

Expand Down

0 comments on commit c1fb24f

Please sign in to comment.