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

Function reshape_codebook_indices

src/models/heartmula/codec.cpp:605–615  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

603 const HeartCodecResidualUnitWeights & weights,
604 int64_t channels,
605 int64_t kernel_size,
606 int64_t dilation) {
607 auto x = causal_conv1d(ctx, input, weights.conv1, channels, channels, kernel_size, dilation);
608 x = prelu(ctx, x, weights.activation1);
609 x = causal_conv1d(ctx, x, weights.conv2, channels, channels, 1);
610 x = prelu(ctx, x, weights.activation2);
611 return modules::AddModule{}.build(ctx, input, x);
612}
613
614core::TensorValue scalar_decoder(
615 core::ModuleBuildContext & ctx,
616 const core::TensorValue & latents,
617 const HeartCodecScalarDecoderWeights & weights,
618 const HeartCodecConfig & config) {

Callers 1

conditioning_from_codesFunction · 0.85

Calls 5

SliceModuleClass · 0.85
TransposeModuleClass · 0.85
reshape_tensorFunction · 0.85
buildMethod · 0.45

Tested by

no test coverage detected