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

Function graph_scale

src/framework/audio/zipenhancer.cpp:410–413  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

408}
409
410core::TensorValue graph_scale(core::ModuleBuildContext & ctx, const core::TensorValue & input, float scale) {
411 const auto contiguous = core::ensure_backend_addressable_layout(ctx, input);
412 return core::wrap_tensor(ggml_scale(ctx.ggml, contiguous.tensor, scale), input.shape, GGML_TYPE_F32);
413}
414
415core::TensorValue graph_scale_bias(core::ModuleBuildContext & ctx, const core::TensorValue & input, float scale, float bias) {
416 const auto contiguous = core::ensure_backend_addressable_layout(ctx, input);

Callers 4

graph_swoosh_lFunction · 0.70
graph_swoosh_rFunction · 0.70
graph_bias_normFunction · 0.70
graph_downsampleFunction · 0.70

Calls 3

wrap_tensorFunction · 0.85
ggml_scaleFunction · 0.85

Tested by

no test coverage detected