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

Function bind_conv1d

src/models/miocodec/weights.cpp:235–260  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

233}
234
235MioCodecConv1dWeights bind_conv1d(
236 const MioCodecWeights & weights,
237 const std::string & prefix,
238 int64_t out_channels,
239 int64_t in_channels,
240 int64_t kernel_size,
241 int stride = 1,
242 int padding = 0,
243 int dilation = 1,
244 bool use_bias = true) {
245 MioCodecConv1dWeights conv;
246 conv.config = {
247 in_channels,
248 out_channels,
249 kernel_size,
250 stride,
251 padding,
252 dilation,
253 use_bias,
254 };
255 conv.weights.weight = require_loaded_tensor(weights, prefix + ".weight", {out_channels, in_channels, kernel_size});
256 if (use_bias) {
257 conv.weights.bias = require_loaded_tensor(weights, prefix + ".bias", {out_channels});
258 }
259 return conv;
260}
261
262MioCodecConvTranspose1dWeights bind_conv_transpose1d(
263 const MioCodecWeights & weights,

Callers 3

bind_resnet_blockFunction · 0.85
bind_global_encoderFunction · 0.85
bind_component_weightsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected