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

Function conv1d_from_source

include/engine/framework/modules/weight_binding.h:324–339  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

322
323template <typename Store>
324Conv1dWeights conv1d_from_source(
325 Store & store,
326 const assets::TensorSource & source,
327 const std::string & prefix,
328 assets::TensorStorageType storage_type,
329 int64_t out_channels,
330 int64_t in_channels,
331 int64_t kernel_size,
332 bool use_bias) {
333 Conv1dWeights weights;
334 weights.weight = store.load_tensor(source, prefix + ".weight", storage_type, {out_channels, in_channels, kernel_size});
335 if (use_bias) {
336 weights.bias = store.load_f32_tensor(source, prefix + ".bias", {out_channels});
337 }
338 return weights;
339}
340
341template <typename Store>
342Conv2dWeights conv2d_from_source(

Callers 4

load_weightsFunction · 0.85
load_vocoder_weightsFunction · 0.85

Calls 2

load_tensorMethod · 0.80
load_f32_tensorMethod · 0.80

Tested by

no test coverage detected