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
214} // namespace
215
216core::TensorValue LayerScaleModule::build(
217 core::ModuleBuildContext & ctx,
218 const core::TensorValue & input,
219 const LayerScaleWeights & weights) const {
220 auto scale = repeat_like(ctx, weights.scale, input);
221 return mul(ctx, input, scale);
222}
223
224TimestepEmbeddingModule::TimestepEmbeddingModule(TimestepEmbeddingConfig config) : config_(config) {

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