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

Function conv_transpose1d_with_padding

src/models/miocodec/graph_ops.cpp:32–44  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

30}
31
32core::TensorValue conv_transpose1d_with_padding(
33 core::ModuleBuildContext & ctx,
34 const core::TensorValue & input,
35 const MioCodecConvTranspose1dWeights & weights) {
36 auto config = weights.config;
37 config.padding = 0;
38 auto output = engine::modules::ConvTranspose1dModule(config).build(ctx, input, weights.weights);
39 if (weights.config.padding > 0) {
40 output = engine::modules::SliceModule({2, weights.config.padding, conv_transpose1d_output_frames(weights.config, input.shape.dims[2])})
41 .build(ctx, output);
42 }
43 return output;
44}
45
46} // namespace
47

Callers 1

upsamplerFunction · 0.85

Calls 4

SliceModuleClass · 0.85
buildMethod · 0.45

Tested by

no test coverage detected