llama_model_size is explicity sized as uint64_t
this is an implicit cast
This commit is contained in:
parent
fcf90a1d23
commit
15176afd7d
2 changed files with 2 additions and 2 deletions
|
@ -469,7 +469,7 @@ extern "C" {
|
|||
LLAMA_API int32_t llama_model_desc(const struct llama_model * model, char * buf, size_t buf_size);
|
||||
|
||||
// Returns the total size of all the tensors in the model in bytes
|
||||
LLAMA_API size_t llama_model_size(const struct llama_model * model);
|
||||
LLAMA_API uint64_t llama_model_size(const struct llama_model * model);
|
||||
|
||||
// Returns the total number of parameters in the model
|
||||
LLAMA_API uint64_t llama_model_n_params(const struct llama_model * model);
|
||||
|
|
|
@ -19965,7 +19965,7 @@ int32_t llama_model_desc(const struct llama_model * model, char * buf, size_t bu
|
|||
llama_model_ftype_name(model->ftype).c_str());
|
||||
}
|
||||
|
||||
size_t llama_model_size(const struct llama_model * model) {
|
||||
uint64_t llama_model_size(const struct llama_model * model) {
|
||||
return model->n_bytes;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue