fixing more compile issues

This commit is contained in:
Concedo 2023-05-15 20:10:54 +08:00
parent 6504150fac
commit 72836d4eac
6 changed files with 10 additions and 6 deletions

View file

@ -357,7 +357,8 @@ bool legacy_gpt2_eval(
struct ggml_v1_context * ctx0 = ggml_v1_init(params);
struct ggml_v1_cgraph gf = { .n_threads = n_threads };
struct ggml_v1_cgraph gf = {};
gf.n_threads = n_threads;
struct ggml_v1_tensor * embd = ggml_v1_new_tensor_1d(ctx0, GGML_V1_TYPE_I32, N);
memcpy(embd->data, embd_inp.data(), N*ggml_v1_element_size(embd));