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