| 263 | } |
| 264 | |
| 265 | core::TensorValue graph_scale(core::ModuleBuildContext & ctx, const core::TensorValue & input, float scale) { |
| 266 | return core::wrap_tensor(ggml_scale(ctx.ggml, graph_contiguous(ctx, input).tensor, scale), input.shape, GGML_TYPE_F32); |
| 267 | } |
| 268 | |
| 269 | core::TensorValue graph_scale_bias(core::ModuleBuildContext & ctx, const core::TensorValue & input, float scale, float bias) { |
| 270 | return core::wrap_tensor(ggml_scale_bias(ctx.ggml, graph_contiguous(ctx, input).tensor, scale, bias), input.shape, GGML_TYPE_F32); |
no test coverage detected