| 407 | } |
| 408 | |
| 409 | ggml_status compute_graph( |
| 410 | const ExecutionContext & execution_context, |
| 411 | ggml_cgraph * graph, |
| 412 | HostGraphPlan & plan, |
| 413 | const char * label) { |
| 414 | return plan.active() |
| 415 | ? ggml_graph_compute(graph, &plan.plan) |
| 416 | : compute_backend_graph(execution_context.backend(), graph, nullptr, label); |
| 417 | } |
| 418 | |
| 419 | void write_tensor_f32(const TensorValue & tensor, const float * values, size_t count) { |
| 420 | if (tensor.type != GGML_TYPE_F32) { |
no test coverage detected