]> git.djapps.eu Git - pkg/ggml/sources/ggml/commitdiff
ggml : fix L-BFGS linesearch loop (close #501)
authorGeorgi Gerganov <redacted>
Sat, 2 Sep 2023 07:07:04 +0000 (10:07 +0300)
committerGeorgi Gerganov <redacted>
Sat, 2 Sep 2023 07:07:04 +0000 (10:07 +0300)
src/ggml.c

index 74966f3c37673f077347aa9d18a9e14d27ac9f71..bea1e245f502c93a589b53e90de822a7b2d24e29 100644 (file)
@@ -18713,7 +18713,6 @@ static enum ggml_opt_result linesearch_backtracking(
                     // strong Wolfe condition (GGML_LINESEARCH_BACKTRACKING_STRONG_WOLFE)
                     return count;
                 }
-                return count;
             }
         }