| 4929 | } |
| 4930 | |
| 4931 | void init() { |
| 4932 | struct ggml_init_params params = { |
| 4933 | /*.mem_size =*/ buf_compute.size, |
| 4934 | /*.mem_buffer =*/ buf_compute.data, |
| 4935 | /*.no_alloc =*/ true, |
| 4936 | }; |
| 4937 | |
| 4938 | |
| 4939 | ctx0 = ggml_init(params); |
| 4940 | } |
| 4941 | |
| 4942 | void free() { |
| 4943 | if (ctx0) { |
nothing calls this directly
no test coverage detected