MCPcopy Create free account
hub / github.com/appdevforall/CodeOnTheGo / ggml_opt_reset

Function ggml_opt_reset

subprojects/llama.cpp/ggml/src/ggml-opt.cpp:595–602  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

593}
594
595void ggml_opt_reset(ggml_opt_context_t opt_ctx, bool optimizer) {
596 if (optimizer) {
597 ggml_graph_reset(opt_ctx->gb_opt);
598 opt_ctx->iter = 1;
599 } else {
600 ggml_graph_reset(opt_ctx->gb_grad);
601 }
602}
603
604bool ggml_opt_static_graphs(ggml_opt_context_t opt_ctx) {
605 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