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

Function ensure_contiguous

src/models/stable_audio/same_autoencoder.cpp:143–145  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

141}
142
143core::TensorValue ensure_contiguous(core::ModuleBuildContext & ctx, const core::TensorValue & input) {
144 return core::ensure_backend_addressable_layout(ctx, input);
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);

Callers 8

scale_tensorFunction · 0.70
reshape_headsFunction · 0.70
same_attentionFunction · 0.70
same_self_attentionFunction · 0.70
build_decoder_blockMethod · 0.70
build_graph_outputMethod · 0.70

Calls 1

Tested by

no test coverage detected