| 146 | } |
| 147 | |
| 148 | static void helper_free_ctx_data(struct helper_ctx_data ctx_data) { |
| 149 | ggml_opt_result_free(ctx_data.result); |
| 150 | ggml_opt_result_free(ctx_data.result2); |
| 151 | ggml_opt_free(ctx_data.opt_ctx); |
| 152 | ggml_backend_buffer_free(ctx_data.buf); |
| 153 | ggml_free(ctx_data.ctx_static); |
| 154 | ggml_free(ctx_data.ctx_compute); |
| 155 | for (ggml_opt_dataset_t dataset : ctx_data.datasets_supervised) { |
| 156 | ggml_opt_dataset_free(dataset); |
| 157 | } |
| 158 | ggml_opt_dataset_free(ctx_data.dataset_unsupervised); |
| 159 | } |
| 160 | |
| 161 | static void helper_after_test( |
| 162 | const char * func, const bool high_level, const std::string options, |
no test coverage detected