MCPcopy Create free account
hub / github.com/0xShug0/audio.cpp / run_f32

Method run_f32

tests/unittests/test_encoder_modules.cpp:147–155  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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
158using ModuleRunner = CpuModuleRunner;

Calls 4

ggml_new_graph_customFunction · 0.85
read_tensor_f32_intoFunction · 0.85

Tested by

no test coverage detected