| 379 | const assets::TensorSource & source, |
| 380 | const std::string & prefix, |
| 381 | const StableAudioConfig & config, |
| 382 | int64_t dim, |
| 383 | assets::TensorStorageType storage_type) { |
| 384 | StableAudioSameAttentionWeights weights; |
| 385 | weights.to_qkv = load_linear( |
| 386 | store, |
| 387 | source, |
| 388 | prefix + ".to_qkv", |
| 389 | storage_type, |
| 390 | dim * (config.same_differential ? 5 : 3), |
| 391 | dim, |
| 392 | false); |
| 393 | weights.to_out = load_linear(store, source, prefix + ".to_out", storage_type, dim, dim, false); |
| 394 | weights.q_norm = load_dyt_norm(store, source, prefix + ".q_norm", config.same_dim_heads); |
no test coverage detected