| 366 | } |
| 367 | |
| 368 | static void ggml_graph_compute_helper(std::vector<uint8_t> & buf, ggml_cgraph * graph, int n_threads) { |
| 369 | struct ggml_cplan plan = ggml_graph_plan(graph, n_threads, nullptr); |
| 370 | |
| 371 | if (plan.work_size > 0) { |
| 372 | buf.resize(plan.work_size); |
| 373 | plan.work_data = buf.data(); |
| 374 | } |
| 375 | |
| 376 | ggml_graph_compute(graph, &plan); |
| 377 | } |
| 378 | |
| 379 | static void ggml_sam_sin(struct ggml_tensor * dst , const struct ggml_tensor * src, int ith, int nth, void * userdata) { |
| 380 | GGML_ASSERT(userdata == NULL); |
no test coverage detected