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

Function scale_tensor

src/models/stable_audio/same_autoencoder.cpp:147–149  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

145}
146
147core::TensorValue scale_tensor(core::ModuleBuildContext & ctx, const core::TensorValue & input, float scale) {
148 return core::wrap_tensor(ggml_scale(ctx.ggml, ensure_contiguous(ctx, input).tensor, scale), input.shape, GGML_TYPE_F32);
149}
150
151core::TensorValue broadcast_last_dim(
152 core::ModuleBuildContext & ctx,

Callers 5

same_self_attentionFunction · 0.70
same_feed_forwardFunction · 0.70
build_graph_outputMethod · 0.70
build_decoder_blockMethod · 0.70
build_graph_outputMethod · 0.70

Calls 3

wrap_tensorFunction · 0.85
ggml_scaleFunction · 0.85
ensure_contiguousFunction · 0.70

Tested by

no test coverage detected