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

Function bind_resnet_stack

src/models/miocodec/weights.cpp:448–459  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

446}
447
448MioCodecResNetStackWeights bind_resnet_stack(
449 const MioCodecWeights & weights,
450 const std::string & prefix,
451 int64_t channels,
452 int64_t blocks) {
453 MioCodecResNetStackWeights stack;
454 stack.blocks.reserve(static_cast<size_t>(blocks));
455 for (int64_t block = 0; block < blocks; ++block) {
456 stack.blocks.push_back(bind_resnet_block(weights, prefix + ".blocks." + std::to_string(block), channels));
457 }
458 return stack;
459}
460
461MioCodecUpsamplerWeights bind_upsampler(
462 MioCodecWeights & weights,

Callers 1

bind_component_weightsFunction · 0.85

Calls 2

bind_resnet_blockFunction · 0.85
to_stringFunction · 0.50

Tested by

no test coverage detected