avoid copying the entire vector
This commit is contained in:
parent
1892ae7eb1
commit
00381b07bb
1 changed files with 1 additions and 1 deletions
|
@ -3243,7 +3243,7 @@ struct llama_model_loader {
|
|||
const auto & mapping = mappings.at(w.idx);
|
||||
ggml_backend_buffer_t buf_mmap = nullptr;
|
||||
if (bufs_mmap.size() > 1) {
|
||||
buf_mmap = bufs_mmap[w.idx];
|
||||
buf_mmap = bufs_mmap.at(w.idx);
|
||||
} else if (!bufs_mmap.empty()) {
|
||||
buf_mmap = bufs_mmap.front();
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue