| 408 | } |
| 409 | |
| 410 | core::TensorValue graph_scale(core::ModuleBuildContext & ctx, const core::TensorValue & input, float scale) { |
| 411 | const auto contiguous = core::ensure_backend_addressable_layout(ctx, input); |
| 412 | return core::wrap_tensor(ggml_scale(ctx.ggml, contiguous.tensor, scale), input.shape, GGML_TYPE_F32); |
| 413 | } |
| 414 | |
| 415 | core::TensorValue graph_scale_bias(core::ModuleBuildContext & ctx, const core::TensorValue & input, float scale, float bias) { |
| 416 | const auto contiguous = core::ensure_backend_addressable_layout(ctx, input); |
no test coverage detected