Skip to content

Commit b8feff4

Browse files
phymbertslaren
andauthored
Avoir copying the entire vector
Co-authored-by: slaren <[email protected]>
1 parent 7c64fef commit b8feff4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

llama.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5251,7 +5251,7 @@ static bool llm_load_tensors(
52515251
// load tensor data
52525252
for (auto & it : ctx_bufs) {
52535253
ggml_context * ctx = it.first;
5254-
std::vector<ggml_backend_buffer_t> bufs = it.second;
5254+
auto & bufs = it.second;
52555255
if (!ml.load_all_data(ctx, progress_callback, progress_callback_user_data, bufs, use_mlock ? &model.mlock_mmaps : NULL)) {
52565256
return false;
52575257
}

0 commit comments

Comments
 (0)