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

Method build

src/framework/modules/conditioning_modules.cpp:215–221  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

213} // namespace
214
215core::TensorValue LayerScaleModule::build(
216 core::ModuleBuildContext & ctx,
217 const core::TensorValue & input,
218 const LayerScaleWeights & weights) const {
219 auto scale = repeat_like(ctx, weights.scale, input);
220 return mul(ctx, input, scale);
221}
222
223TimestepEmbeddingModule::TimestepEmbeddingModule(TimestepEmbeddingConfig config) : config_(config) {
224 require_positive(config_.frequency_embedding_size, "TimestepEmbeddingConfig.frequency_embedding_size");

Callers 4

slice_last_dimFunction · 0.45
apply_adalnFunction · 0.45
concat_last_dimFunction · 0.45
variance_rms_normFunction · 0.45

Calls 15

validate_rank_betweenFunction · 0.85
validate_last_dimFunction · 0.85
validate_shapeFunction · 0.85
RepeatModuleClass · 0.85
reshape_tensorFunction · 0.85
wrap_tensorFunction · 0.85
ggml_cosFunction · 0.85
ggml_sinFunction · 0.85
concat_last_dimFunction · 0.85
LinearModuleClass · 0.85
SiluModuleClass · 0.85
variance_rms_normFunction · 0.85

Tested by

no test coverage detected