mirror of
https://github.com/ggml-org/llama.cpp.git
synced 2025-11-04 09:32:00 +00:00
ggml : fix bug in LBFGS optimizer (found by ggml tests)
This commit is contained in:
1
ggml.c
1
ggml.c
@@ -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);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user