From c505a2d2176d8874c189a60ceaf6d717d7227c1d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sebasti=C3=A1n=20Aedo?= Date: Sun, 12 Mar 2023 02:12:53 -0300 Subject: [PATCH] Fix zero initialization of the other fields. --- main.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/main.cpp b/main.cpp index 0c86a2b..72d8bfa 100644 --- a/main.cpp +++ b/main.cpp @@ -551,7 +551,7 @@ bool llama_eval( }; struct ggml_context * ctx0 = ggml_init(params); - struct ggml_cgraph gf; + ggml_cgraph gf = {}; gf.n_threads = n_threads; struct ggml_tensor * embd = ggml_new_tensor_1d(ctx0, GGML_TYPE_I32, N);