Fix zero initialization of the other fields.
This commit is contained in:
parent
ce0d5fb9de
commit
c505a2d217
1 changed files with 1 additions and 1 deletions
2
main.cpp
2
main.cpp
|
@ -551,7 +551,7 @@ bool llama_eval(
|
||||||
};
|
};
|
||||||
|
|
||||||
struct ggml_context * ctx0 = ggml_init(params);
|
struct ggml_context * ctx0 = ggml_init(params);
|
||||||
struct ggml_cgraph gf;
|
ggml_cgraph gf = {};
|
||||||
gf.n_threads = n_threads;
|
gf.n_threads = n_threads;
|
||||||
|
|
||||||
struct ggml_tensor * embd = ggml_new_tensor_1d(ctx0, GGML_TYPE_I32, N);
|
struct ggml_tensor * embd = ggml_new_tensor_1d(ctx0, GGML_TYPE_I32, N);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue