MCPcopy Create free account
hub / github.com/antirez/llama.cpp-deepseek-v4-flash / ggml_opt_reset

Function ggml_opt_reset

ggml/src/ggml-opt.cpp:596–603  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

594}
595
596void ggml_opt_reset(ggml_opt_context_t opt_ctx, bool optimizer) {
597 if (optimizer) {
598 ggml_graph_reset(opt_ctx->gb_opt);
599 opt_ctx->iter = 1;
600 } else {
601 ggml_graph_reset(opt_ctx->gb_grad);
602 }
603}
604
605bool ggml_opt_static_graphs(ggml_opt_context_t opt_ctx) {
606 return opt_ctx->static_graphs;

Callers 1

test_forward_backwardFunction · 0.85

Calls 1

ggml_graph_resetFunction · 0.85

Tested by 1

test_forward_backwardFunction · 0.68