| 446 | } |
| 447 | |
| 448 | MioCodecResNetStackWeights 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 | |
| 461 | MioCodecUpsamplerWeights bind_upsampler( |
| 462 | MioCodecWeights & weights, |
no test coverage detected