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

Function norm_from_source

include/engine/framework/modules/weight_binding.h:300–309  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

298
299template <typename Store>
300NormWeights norm_from_source(
301 Store & store,
302 const assets::TensorSource & source,
303 const std::string & prefix,
304 int64_t hidden_size) {
305 return {
306 store.load_f32_tensor(source, prefix + ".weight", {hidden_size}),
307 store.load_f32_tensor(source, prefix + ".bias", {hidden_size}),
308 };
309}
310
311template <typename Store>
312NormWeights norm_weight_from_source(

Callers 6

load_weightsFunction · 0.85
load_conformer_layerFunction · 0.85
load_transformer_layerFunction · 0.85
load_vocoder_weightsFunction · 0.85
load_whisper_weightsFunction · 0.85

Calls 1

load_f32_tensorMethod · 0.80

Tested by

no test coverage detected