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 engine::core::TensorValue make_i32(const engine::core::TensorShape & shape) {
148 return engine::core::make_tensor(ctx, GGML_TYPE_I32, shape);
149 }
150
151 void allocate_tensors() {
152 if (buffer != nullptr) {
153 return;
154 }
155 buffer = ggml_backend_alloc_ctx_tensors(ggml, backend);
156 if (buffer == nullptr) {
157 throw std::runtime_error("failed to allocate test backend tensors");
158 }

Calls 4

ggml_new_graph_customFunction · 0.85
read_tensor_f32_intoFunction · 0.85

Tested by

no test coverage detected