Always initialize mm_addr and mm_length in llama_model
This commit is contained in:
@@ -150,8 +150,8 @@ struct llama_model {
|
|||||||
std::vector<uint8_t> buf;
|
std::vector<uint8_t> buf;
|
||||||
|
|
||||||
// model memory mapped file
|
// model memory mapped file
|
||||||
void * mm_addr;
|
void * mm_addr = NULL;
|
||||||
size_t mm_length;
|
size_t mm_length = 0;
|
||||||
|
|
||||||
// tensors
|
// tensors
|
||||||
int n_loaded;
|
int n_loaded;
|
||||||
|
|||||||
Reference in New Issue
Block a user