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

Function main

tests/unittests/test_conv_transpose_fast_path.cpp:246–261  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

244 batch_output = ggml_add(ctx.ggml, batch_output, bias_matrix);
245 }
246 auto batch_value = engine::core::wrap_tensor(
247 ggml_reshape_3d(ctx.ggml, batch_output, batch_output->ne[0], batch_output->ne[1], 1),
248 engine::core::TensorShape::from_dims({1, config.out_channels, batch_output->ne[0]}),
249 GGML_TYPE_F32);
250 if (batch_value.shape.dims[2] != output_shape.dims[2]) {
251 throw std::runtime_error("test col2im path produced unexpected frame count");
252 }
253 output = output.valid() ? engine::modules::ConcatModule({0}).build(ctx, output, batch_value) : batch_value;
254 }
255 return output;
256}
257
258RunResult run_conv_transpose_case(
259 const ConvTransposeCase & test_case,
260 engine::core::BackendType backend_type) {
261 BackendModuleRunner runner(
262 backend_type == engine::core::BackendType::Cuda ? "conv_transpose_fast_path_test.cuda" : "conv_transpose_fast_path_test.reference",
263 backend_type);
264

Callers

nothing calls this directly

Calls 3

backend_is_availableFunction · 0.70
run_caseFunction · 0.70

Tested by

no test coverage detected