From: Georgi Gerganov Date: Mon, 8 May 2023 15:07:10 +0000 (+0300) Subject: dolly-v2 : ggml_cgraph init (#112) X-Git-Tag: upstream/0.0.1642~1490 X-Git-Url: https://git.djapps.eu/?a=commitdiff_plain;h=7eb0edf3118a48f036cc4bf23e8a1eaeb2ea7f02;p=pkg%2Fggml%2Fsources%2Fggml dolly-v2 : ggml_cgraph init (#112) --- diff --git a/examples/dolly-v2/main.cpp b/examples/dolly-v2/main.cpp index 4eaa2fee..f6279511 100644 --- a/examples/dolly-v2/main.cpp +++ b/examples/dolly-v2/main.cpp @@ -434,7 +434,8 @@ bool dollyv2_eval( }; 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));