mirror of
https://github.com/RYDE-WORK/llama.cpp.git
synced 2026-01-27 02:24:44 +08:00
ggml : fix bug in LBFGS optimizer (found by ggml tests)
This commit is contained in:
parent
ba4e85a833
commit
18b35625c3
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);
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user