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

Function load_same_ff

src/models/stable_audio/same_autoencoder.cpp:415–426  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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
427StableAudioSameResamplingBlockWeights load_decoder_block(
428 core::BackendWeightStore & store,
429 const assets::TensorSource & source,

Callers 1

load_same_transformerFunction · 0.85

Calls 1

load_linearFunction · 0.70

Tested by

no test coverage detected