| 594 | } |
| 595 | |
| 596 | void 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 | |
| 605 | bool ggml_opt_static_graphs(ggml_opt_context_t opt_ctx) { |
| 606 | return opt_ctx->static_graphs; |