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

Function load_linear

src/models/vibevoice/tokenizer_audio.cpp:201–212  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

199}
200
201modules::LinearWeights load_linear(
202 core::BackendWeightStore & store,
203 const assets::TensorSource & source,
204 const std::string & prefix,
205 int64_t in_features,
206 int64_t out_features,
207 assets::TensorStorageType weight_storage_type) {
208 modules::LinearWeights weights;
209 weights.weight = store.load_tensor(source, prefix + ".weight", weight_storage_type, {out_features, in_features});
210 weights.bias = store.load_tensor(source, prefix + ".bias", assets::TensorStorageType::F32, {out_features});
211 return weights;
212}
213
214VibeVoiceTokenizerBlockWeights load_block(
215 core::BackendWeightStore & store,

Callers 1

load_blockFunction · 0.70

Calls 1

load_tensorMethod · 0.80

Tested by

no test coverage detected