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

Function load_activation

src/framework/audio/flashsr.cpp:121–129  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

119}
120
121ActivationParams load_activation(
122 core::BackendWeightStore & store,
123 const std::shared_ptr<const engine::assets::TensorSource> & source,
124 const std::string & prefix) {
125 return {
126 store.make_f32(core::TensorShape::from_dims({kFlashSrChannels}), require_channel_param(source, prefix + ".alpha")),
127 store.make_f32(core::TensorShape::from_dims({kFlashSrChannels}), require_channel_param(source, prefix + ".inv_beta")),
128 };
129}
130
131ResBlockWeights load_resblock(
132 core::BackendWeightStore & store,

Callers 2

load_resblockFunction · 0.70
load_from_directoryMethod · 0.70

Calls 2

require_channel_paramFunction · 0.85
make_f32Method · 0.45

Tested by

no test coverage detected