| 145 | } |
| 146 | |
| 147 | std::vector<float> run_f32(const engine::core::TensorValue & output) { |
| 148 | allocate_tensors(); |
| 149 | ggml_cgraph * graph = ggml_new_graph_custom(ggml, kTestGraphNodes, false); |
| 150 | ggml_build_forward_expand(graph, output.tensor); |
| 151 | ggml_backend_graph_compute(backend, graph); |
| 152 | std::vector<float> values; |
| 153 | engine::core::read_tensor_f32_into(output.tensor, values); |
| 154 | return values; |
| 155 | } |
| 156 | }; |
| 157 | |
| 158 | using ModuleRunner = CpuModuleRunner; |
no test coverage detected