From 927005626907ce3531be885855212238123c3636 Mon Sep 17 00:00:00 2001 From: Concedo <39025047+LostRuins@users.noreply.github.com> Date: Mon, 5 Jun 2023 11:48:04 +0800 Subject: [PATCH] fixed compile error in cmake VS --- otherarch/mpt_v3.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/otherarch/mpt_v3.cpp b/otherarch/mpt_v3.cpp index 68ccf49b1..7f16701d1 100644 --- a/otherarch/mpt_v3.cpp +++ b/otherarch/mpt_v3.cpp @@ -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));