mirror of
https://github.com/ggerganov/llama.cpp.git
synced 2024-12-24 13:28:50 +01:00
Take good advice and streamline code
This commit is contained in:
parent
93f85ea213
commit
c1fb24fe1f
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user