fixed compile error in cmake VS

This commit is contained in:
Concedo 2023-06-05 11:48:04 +08:00
parent b7fb1aa233
commit 9270056269

View file

@ -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));