common: fix cb_eval and user data not initialized

This commit is contained in:
Pierrick HYMBERT 2024-04-10 21:40:52 +02:00
parent ca6f3ff4e0
commit f3f0d1818f

View file

@ -80,8 +80,8 @@ struct gpt_params {
int32_t yarn_orig_ctx = 0; // YaRN original context length
float defrag_thold = -1.0f; // KV cache defragmentation threshold
ggml_backend_sched_eval_callback cb_eval;
void * cb_eval_user_data;
ggml_backend_sched_eval_callback cb_eval = nullptr;
void * cb_eval_user_data = nullptr;
ggml_numa_strategy numa = GGML_NUMA_STRATEGY_DISABLED;