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

Function load_plain_conv1d

src/models/heartmula/codec.cpp:142–157  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

140 weights.bias = store.load_f32_tensor(source, prefix + ".bias", {out_channels});
141 }
142 return weights;
143}
144
145HeartCodecPreluWeights load_prelu(
146 core::BackendWeightStore & store,
147 const assets::TensorSource & source,
148 const std::string & prefix) {
149 return {store.load_f32_tensor(source, prefix + ".weight", {1})};
150}
151
152HeartCodecProjectLayerWeights load_project_layer(
153 core::BackendWeightStore & store,
154 const assets::TensorSource & source,
155 const std::string & prefix,
156 assets::TensorStorageType storage_type,
157 int64_t in_channels,
158 int64_t out_channels) {
159 HeartCodecProjectLayerWeights weights;
160 weights.ffn_1 = binding::conv1d_from_source(

Callers 2

load_project_layerFunction · 0.85

Calls 2

load_tensorMethod · 0.80
load_f32_tensorMethod · 0.80

Tested by

no test coverage detected