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

Function apply_gamma

src/models/miocodec/graph_ops.cpp:170–177  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

168}
169
170core::TensorValue apply_gamma(
171 core::ModuleBuildContext & ctx,
172 const core::TensorValue & input,
173 const core::TensorValue & gamma,
174 int64_t hidden) {
175 auto repeated = repeat_like(ctx, gamma, input, core::TensorShape::from_dims({1, hidden, 1}));
176 return core::wrap_tensor(ggml_mul(ctx.ggml, input.tensor, repeated.tensor), input.shape, GGML_TYPE_F32);
177}
178
179core::TensorValue swiglu(
180 core::ModuleBuildContext & ctx,

Callers 1

convnext_blockFunction · 0.85

Calls 3

wrap_tensorFunction · 0.85
ggml_mulFunction · 0.85
repeat_likeFunction · 0.70

Tested by

no test coverage detected