| 426 | |
| 427 | StableAudioSameResamplingBlockWeights load_decoder_block( |
| 428 | core::BackendWeightStore & store, |
| 429 | const assets::TensorSource & source, |
| 430 | const StableAudioConfig & config, |
| 431 | assets::TensorStorageType storage_type) { |
| 432 | const int64_t block_index = 3; |
| 433 | const int64_t in_channels = config.same_channels * config.same_c_mults.back(); |
| 434 | const int64_t out_channels = config.same_decoder_out_channels; |
| 435 | const int64_t kernel = config.same_decoder_conv_mapping ? 3 : 1; |
| 436 | const std::string prefix = "pretransform.model.decoder.layers." + std::to_string(block_index); |
| 437 | StableAudioSameResamplingBlockWeights weights; |
| 438 | weights.mapping = load_weight_norm_conv1d( |
| 439 | store, |
| 440 | source, |
| 441 | prefix + ".mapping", |
| 442 | storage_type, |
| 443 | out_channels, |
| 444 | in_channels, |
no test coverage detected