ggml : fix bug in LBFGS optimizer (found by ggml tests)

This commit is contained in:
Georgi Gerganov 2023-06-19 20:43:30 +03:00
parent ba4e85a833
commit 18b35625c3
No known key found for this signature in database
GPG Key ID: 449E073F9DC10735

1
ggml.c
View File

@ -18237,7 +18237,6 @@ GGML_API void ggml_opt_init(
ggml_set_zero(opt->lbfgs.g); ggml_set_zero(opt->lbfgs.g);
ggml_set_zero(opt->lbfgs.gp); ggml_set_zero(opt->lbfgs.gp);
ggml_set_zero(opt->lbfgs.d); ggml_set_zero(opt->lbfgs.d);
ggml_set_zero(opt->lbfgs.pf);
if (opt->lbfgs.pf) { if (opt->lbfgs.pf) {
ggml_set_zero(opt->lbfgs.pf); ggml_set_zero(opt->lbfgs.pf);
} }