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

Function add_bias_if_needed

src/framework/modules/conv_modules.cpp:117–131  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

115};
116
117const core::ModuleSchema kConvTranspose1dSchema = {
118 "ConvTranspose1d",
119 "nn.conv",
120 kConvInputs,
121 3,
122 kSingleOutput,
123 1,
124 "Applies a 1D transposed convolution to channel-first inputs [batch, channels, frames].",
125};
126
127core::TensorValue ensure_f32(
128 core::ModuleBuildContext & ctx,
129 const core::TensorValue & value) {
130 if (value.type == GGML_TYPE_F32) {
131 return value;
132 }
133 return core::wrap_tensor(ggml_cast(ctx.ggml, value.tensor, GGML_TYPE_F32), value.shape, GGML_TYPE_F32);
134}

Callers 1

buildMethod · 0.70

Calls 6

validate_shapeFunction · 0.85
reshape_tensorFunction · 0.85
wrap_tensorFunction · 0.85
ggml_repeatFunction · 0.85
ggml_addFunction · 0.85

Tested by

no test coverage detected