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

Function repeat_like

src/models/vevo2/components.cpp:539–544  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

537std::vector<float> effective_weight_norm_conv1d(
538 const engine::assets::TensorSource & source,
539 const std::string & prefix,
540 int64_t out_channels,
541 int64_t in_channels,
542 int64_t kernel_size) {
543 const auto g = source.require_f32(prefix + ".weight_g", {out_channels, 1, 1});
544 const auto v = source.require_f32(prefix + ".weight_v", {out_channels, in_channels, kernel_size});
545 std::vector<float> weight(v.size());
546 const int64_t row_size = in_channels * kernel_size;
547 for (int64_t out = 0; out < out_channels; ++out) {

Callers 2

scale_last_dimFunction · 0.70
build_l2_normalized_rowsFunction · 0.70

Calls 2

wrap_tensorFunction · 0.85
ggml_repeatFunction · 0.85

Tested by

no test coverage detected