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

Function negate_tensor

src/models/chatterbox/s3_tokenizer_impl.cpp:262–269  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

260 input.type);
261}
262
263engine::core::TensorValue negate_tensor(
264 engine::core::ModuleBuildContext & ctx,
265 const engine::core::TensorValue & input) {
266 return engine::core::wrap_tensor(
267 ggml_scale(ctx.ggml, contiguous(ctx, input).tensor, -1.0f),
268 input.shape,
269 GGML_TYPE_F32);
270}
271
272engine::core::TensorValue tokenizer_conv1d_bct(

Callers 1

Calls 3

wrap_tensorFunction · 0.85
ggml_scaleFunction · 0.85
contiguousFunction · 0.70

Tested by

no test coverage detected