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

Function add_tensor_values

src/models/chatterbox/s3gen_flow.cpp:280–290  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

278}
279
280engine::core::TensorValue add_tensor_values(
281 engine::core::ModuleBuildContext & ctx,
282 const engine::core::TensorValue & lhs,
283 const engine::core::TensorValue & rhs) {
284 auto lhs_contiguous = contiguous(ctx, lhs);
285 auto rhs_contiguous = contiguous(ctx, rhs);
286 return engine::core::wrap_tensor(
287 ggml_add(ctx.ggml, lhs_contiguous.tensor, rhs_contiguous.tensor),
288 lhs.shape,
289 GGML_TYPE_F32);
290}
291
292engine::core::TensorValue mul_tensor_values(
293 engine::core::ModuleBuildContext & ctx,

Calls 3

wrap_tensorFunction · 0.85
ggml_addFunction · 0.85
contiguousFunction · 0.70

Tested by

no test coverage detected