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

Function project_layer

src/models/heartmula/codec.cpp:719–730  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

717 embedded = modules::LinearModule({512, hidden_size, true, GGML_PREC_F32}).build(ctx, embedded, weights.timestep_linear_1);
718 embedded = modules::SiluModule{}.build(ctx, embedded);
719 return modules::LinearModule({hidden_size, hidden_size, true, GGML_PREC_F32})
720 .build(ctx, embedded, weights.timestep_linear_2);
721}
722
723struct AdaNormParts {
724 core::TensorValue shift_msa;
725 core::TensorValue scale_msa;
726 core::TensorValue gate_msa;
727 core::TensorValue shift_mlp;
728 core::TensorValue scale_mlp;
729 core::TensorValue gate_mlp;
730};
731
732AdaNormParts adaptive_block_parts(
733 core::ModuleBuildContext & ctx,

Callers 1

flow_estimatorFunction · 0.85

Calls 5

TransposeModuleClass · 0.85
Conv1dModuleClass · 0.85
LinearModuleClass · 0.85
scaleFunction · 0.70
buildMethod · 0.45

Tested by

no test coverage detected