diff options
author | Slaren <2141330+slaren@users.noreply.github.com> | 2023-03-29 08:53:14 +0200 |
---|---|---|
committer | Justine Tunney <jtunney@gmail.com> | 2023-03-30 12:28:25 -0700 |
commit | ac184d514723902f9b05b688703b1be6e8dc65de (patch) | |
tree | da3c2788c27697a3212f42927e2f4744c511fc5e | |
parent | 276e5b781155e3bbe6834472c58f03dfe62efabe (diff) |
Always initialize mm_addr and mm_length in llama_model
-rw-r--r-- | llama.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -150,8 +150,8 @@ struct llama_model { std::vector<uint8_t> buf; // model memory mapped file - void * mm_addr; - size_t mm_length; + void * mm_addr = NULL; + size_t mm_length = 0; // tensors int n_loaded; |