| 413 | core::BackendWeightStore & store, |
| 414 | const assets::TensorSource & source, |
| 415 | const std::string & prefix, |
| 416 | const StableAudioConfig & config, |
| 417 | int64_t dim, |
| 418 | assets::TensorStorageType storage_type) { |
| 419 | StableAudioSameTransformerWeights weights; |
| 420 | weights.pre_norm = load_dyt_norm(store, source, prefix + ".pre_norm", dim); |
| 421 | weights.ff_norm = load_dyt_norm(store, source, prefix + ".ff_norm", dim); |
| 422 | weights.self_attn = load_same_attention(store, source, prefix + ".self_attn", config, dim, storage_type); |
| 423 | weights.ff = load_same_ff(store, source, prefix + ".ff", dim, storage_type); |
| 424 | return weights; |
| 425 | } |
| 426 | |
| 427 | StableAudioSameResamplingBlockWeights load_decoder_block( |
| 428 | core::BackendWeightStore & store, |
| 429 | const assets::TensorSource & source, |
no test coverage detected