File tree 2 files changed +6
-2
lines changed
2 files changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -533,7 +533,9 @@ bool gpt2_eval(
533
533
params.mem_buffer = buf;
534
534
535
535
struct ggml_context * ctx0 = ggml_init (params);
536
- struct ggml_cgraph gf = { .n_threads = n_threads };
536
+
537
+ struct ggml_cgraph gf = { };
538
+ gf.n_threads = n_threads;
537
539
538
540
struct ggml_tensor * embd = ggml_new_tensor_1d (ctx0, GGML_TYPE_I32, N);
539
541
memcpy (embd->data , embd_inp.data (), N*ggml_element_size (embd));
Original file line number Diff line number Diff line change @@ -533,7 +533,9 @@ bool gpt2_eval(
533
533
params.mem_buffer = buf;
534
534
535
535
struct ggml_context * ctx0 = ggml_init (params);
536
- struct ggml_cgraph gf = { .n_threads = n_threads };
536
+
537
+ struct ggml_cgraph gf = { };
538
+ gf.n_threads = n_threads;
537
539
538
540
struct ggml_tensor * embd = ggml_new_tensor_1d (ctx0, GGML_TYPE_I32, N);
539
541
memcpy (embd->data , embd_inp.data (), N*ggml_element_size (embd));
You can’t perform that action at this time.
0 commit comments