mirror of
https://github.com/LostRuins/koboldcpp.git
synced 2025-09-16 20:09:41 +00:00
fixing more compile issues
This commit is contained in:
parent
6504150fac
commit
72836d4eac
6 changed files with 10 additions and 6 deletions
|
@ -376,7 +376,8 @@ bool gpt2_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));
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue