| 116 | } |
| 117 | |
| 118 | core::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 | |
| 122 | core::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); |
no test coverage detected