From 461b648383db04dc8289b68ebcc6643da4c530f3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Johannes=20G=C3=A4=C3=9Fler?= Date: Fri, 20 Sep 2024 14:15:24 +0200 Subject: [PATCH] add comment --- include/ggml.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/ggml.h b/include/ggml.h index 8e077a274..6f2f00a1e 100644 --- a/include/ggml.h +++ b/include/ggml.h @@ -2122,7 +2122,7 @@ extern "C" { GGML_API struct ggml_cgraph * ggml_graph_dup (struct ggml_context * ctx, struct ggml_cgraph * cgraph); GGML_API struct ggml_cgraph ggml_graph_view (struct ggml_cgraph * cgraph, int i0, int i1); GGML_API void ggml_graph_cpy (struct ggml_cgraph * src, struct ggml_cgraph * dst); - GGML_API void ggml_graph_reset (struct ggml_cgraph * cgraph); // zero grads + GGML_API void ggml_graph_reset (struct ggml_cgraph * cgraph); // set regular grads + optimizer momenta to 0, set loss grad to 1 GGML_API void ggml_graph_clear (struct ggml_cgraph * cgraph); GGML_API size_t ggml_graph_overhead(void);