]> git.djapps.eu Git - pkg/ggml/sources/ggml/commitdiff
ggml : fix bug in LBFGS optimizer
authorGeorgi Gerganov <redacted>
Mon, 19 Jun 2023 17:43:12 +0000 (20:43 +0300)
committerGeorgi Gerganov <redacted>
Mon, 19 Jun 2023 17:43:12 +0000 (20:43 +0300)
src/ggml.c

index 14e08f9d61fd73e6e6512020d6b0922a375790cb..4319683f5186ee1e1c63e78c606a760fca00d692 100644 (file)
@@ -18237,7 +18237,6 @@ GGML_API void ggml_opt_init(
                 ggml_set_zero(opt->lbfgs.g);
                 ggml_set_zero(opt->lbfgs.gp);
                 ggml_set_zero(opt->lbfgs.d);
-                ggml_set_zero(opt->lbfgs.pf);
                 if (opt->lbfgs.pf) {
                     ggml_set_zero(opt->lbfgs.pf);
                 }