]> git.djapps.eu Git - pkg/ggml/sources/ggml/commitdiff
dolly-v2 : ggml_cgraph init (#112)
authorGeorgi Gerganov <redacted>
Mon, 8 May 2023 15:07:10 +0000 (18:07 +0300)
committerGeorgi Gerganov <redacted>
Mon, 8 May 2023 15:07:10 +0000 (18:07 +0300)
examples/dolly-v2/main.cpp

index 4eaa2fee8ace7e9a24a24e38b200a3eea524afe4..f6279511a9d7b86e4b025cc83cb9184a3052e37f 100644 (file)
@@ -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));