| 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 | |
| 258 | RunResult 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 |
nothing calls this directly
no test coverage detected