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

Function load_flow_layer_norm

src/models/chatterbox/s3gen_flow.cpp:28–37  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

26
27S3FlowEncoderWeights::LayerNormWeights load_flow_layer_norm(
28 engine::core::BackendWeightStore & store,
29 const engine::assets::TensorSource & source,
30 const std::string & prefix,
31 int64_t channels) {
32 S3FlowEncoderWeights::LayerNormWeights weights;
33 weights.weight_tensor = store.load_f32_tensor(source, prefix + ".weight", {channels});
34 weights.bias_tensor = store.load_f32_tensor(source, prefix + ".bias", {channels});
35 return weights;
36}
37
38S3FlowEncoderWeights::LinearWeights load_flow_linear(
39 engine::core::BackendWeightStore & store,
40 const engine::assets::TensorSource & source,

Callers 1

Calls 1

load_f32_tensorMethod · 0.80

Tested by

no test coverage detected