fixed compile error in cmake VS
This commit is contained in:
parent
b7fb1aa233
commit
9270056269
1 changed files with 2 additions and 1 deletions
|
@ -331,7 +331,8 @@ bool mpt_eval(const mpt_model & model, const int n_threads, const int n_past,
|
|||
params.no_alloc = false;
|
||||
|
||||
struct ggml_context * ctx0 = ggml_init(params);
|
||||
struct ggml_cgraph gf = {.n_threads = n_threads};
|
||||
struct ggml_cgraph gf = {};
|
||||
gf.n_threads = n_threads;
|
||||
|
||||
struct ggml_tensor * embd = ggml_new_tensor_1d(ctx0, GGML_TYPE_I32, N);
|
||||
memcpy(embd->data, embd_inp.data(), N * ggml_element_size(embd));
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue