mirror of
https://github.com/ggerganov/llama.cpp.git
synced 2024-12-25 13:58:46 +01: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…
Reference in New Issue
Block a user