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

Function load_dyt_norm

src/models/stable_audio/same_autoencoder.cpp:381–391  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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);

Callers 2

load_same_attentionFunction · 0.85
load_same_transformerFunction · 0.85

Calls 1

load_f32_tensorMethod · 0.80

Tested by

no test coverage detected