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

Function scale_tensor

src/framework/modules/conditioning_modules.cpp:71–76  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

69}
70
71core::TensorValue scale_tensor(
72 core::ModuleBuildContext & ctx,
73 const core::TensorValue & input,
74 float scale) {
75 return core::wrap_tensor(ggml_scale(ctx.ggml, input.tensor, scale), input.shape, GGML_TYPE_F32);
76}
77
78core::TensorValue apply_adaln(
79 core::ModuleBuildContext & ctx,

Callers 2

variance_rms_normFunction · 0.70
buildMethod · 0.70

Calls 2

wrap_tensorFunction · 0.85
ggml_scaleFunction · 0.85

Tested by

no test coverage detected