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

Function one_plus

src/models/stable_audio/rf_dit.cpp:118–120  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

116}
117
118core::TensorValue one_plus(core::ModuleBuildContext & ctx, const core::TensorValue & input) {
119 return core::wrap_tensor(ggml_scale_bias(ctx.ggml, input.tensor, 1.0F, 1.0F), input.shape, GGML_TYPE_F32);
120}
121
122core::TensorValue sigmoid_one_minus(core::ModuleBuildContext & ctx, const core::TensorValue & input) {
123 auto shifted = core::wrap_tensor(ggml_scale_bias(ctx.ggml, input.tensor, -1.0F, 1.0F), input.shape, GGML_TYPE_F32);

Callers 1

build_rf_layerFunction · 0.85

Calls 2

wrap_tensorFunction · 0.85
ggml_scale_biasFunction · 0.85

Tested by

no test coverage detected